]> git.lizzy.rs Git - cheatdb.git/commitdiff
Fix git-created release regression
authorrubenwardy <rw@rubenwardy.com>
Sat, 25 Jan 2020 02:24:26 +0000 (02:24 +0000)
committerrubenwardy <rw@rubenwardy.com>
Sat, 25 Jan 2020 02:36:10 +0000 (02:36 +0000)
app/tasks/importtasks.py

index 5e7085050d3237b2289dc7051daf29becf17af35..0ccdb1cb5e446caafd1004831ea6a41d33a88191 100644 (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