diff options
author | rubenwardy <rw@rubenwardy.com> | 2020-01-25 02:24:26 +0000 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2020-01-25 02:36:10 +0000 |
commit | b1555bfcd532c498529a26885991e574c3de3b5c (patch) | |
tree | 04b80defb75b830f765c2958c6de1f14520fba1c /app/tasks/importtasks.py | |
parent | d5541791b636bd4b2cc97122d94609258e268c58 (diff) | |
download | cheatdb-b1555bfcd532c498529a26885991e574c3de3b5c.tar.xz |
Fix git-created release regression
Diffstat (limited to 'app/tasks/importtasks.py')
-rw-r--r-- | app/tasks/importtasks.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/app/tasks/importtasks.py b/app/tasks/importtasks.py index 5e70850..0ccdb1c 100644 --- a/app/tasks/importtasks.py +++ b/app/tasks/importtasks.py @@ -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 |