Fix git-created release regression

This commit is contained in:
rubenwardy 2020-01-25 02:24:26 +00:00
parent d5541791b6
commit b1555bfcd5
1 changed files with 1 additions and 4 deletions

View File

@ -160,10 +160,7 @@ def cloneRepo(urlstr, ref=None, recursive=False):
origin = repo.create_remote("origin", url=gitUrl)
assert origin.exists()
origin.fetch()
new_head = repo.commit(ref) #repo.create_head("target", ref)
repo.head.reference = new_head
repo.head.reset(index=True, working_tree=True)
origin.pull(ref)
return gitDir, repo