gitwrapper: Re-run git init before do full clone
Sometimes full clone failed with error fatal: Not a git repository and we found that .git/refs/ dir is missing after shallow clone failed. JIRA: RHELCMP-724 Signed-off-by: Haibo Lin <hlin@redhat.com>
This commit is contained in:
parent
c6312b34d0
commit
b3a55fd863
2 changed files with 3 additions and 0 deletions
|
|
@ -192,6 +192,7 @@ class GitSCMTestCase(SCMBaseTest):
|
|||
"git://example.com/git/repo.git",
|
||||
"master",
|
||||
],
|
||||
["git", "init"],
|
||||
["git", "remote", "add", "origin", url],
|
||||
["git", "remote", "update", "origin"],
|
||||
["git", "checkout", "master"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue