mprahl
df5b9ab04a
Ignore entries in "git ls-remote" with "refs/remotes/origin/"
2017-11-17 11:35:35 -05:00
mprahl
1622494b17
Replace the name of the "branch" parameter in "scm.get_latest" to "ref"
2017-11-13 09:20:20 -05:00
Martin Curlej
bf2369e8e0
Fixed issue with getting the latest ref
...
Signed-off-by: Martin Curlej <mcurlej@redhat.com >
2017-11-09 12:47:08 +01:00
mprahl
e91f4fdea6
Revert "added git option which will return correct return code"
...
This caused an issue when the modulemd had the ref's for its components
as commit hashes instead of branches.
This reverts commit 15f332e60f .
2017-11-03 16:20:33 -04:00
Martin Curlej
15f332e60f
added git option which will return correct return code
...
added tests
fixing typo
2017-10-04 11:44:24 +02:00
Filip Valder
09b3f32dbb
Fix #619 : Support for module YAML file validation within a SCM repository
2017-08-07 13:10:53 +02:00
Filip Valder
a192dab1e2
return Unprocessable Entity in case of a commit hash which is not found within the repository
2017-04-10 16:41:24 +02:00
Jan Kaluza
4b3e295e48
Expect 'branch' while handling submission of module and use it to set the stream of module. Also verify that the commit hash belongs to that branch.
2017-03-07 11:25:06 +01:00
Ralph Bean
357b4a089d
Add an internal repo for tests.
2017-02-20 21:07:20 -05:00
Ralph Bean
0ffb1f7e42
Test that we can clone repos with a trailing slash.
2017-02-20 12:44:49 -05:00
Ralph Bean
2e6e153660
Add a few tests for the SCM module.
...
In particular, test to see if we can pass a branch name with shell
characters, and get MBS to inadvertently execute malicious code.
The test shows that doing this in a straightforward way is not possible
and should guard against any future regressions.
Fixes #329 .
2017-02-20 09:25:00 -05:00