summaryrefslogtreecommitdiff
path: root/lib/git/objects/commit.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/git/objects/commit.py')
-rw-r--r--lib/git/objects/commit.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/git/objects/commit.py b/lib/git/objects/commit.py
index 1aedaabf..a2b6c554 100644
--- a/lib/git/objects/commit.py
+++ b/lib/git/objects/commit.py
@@ -369,9 +369,6 @@ class Commit(base.Object, Iterable, Diffable, Traversable, Serializable):
# as well ...
import git.refs
try:
- cur_commit = repo.head.commit
- # Adjust the original head reference - force it
- git.refs.SymbolicReference.create(repo, 'ORIG_HEAD', cur_commit, force=True)
repo.head.commit = new_commit
except ValueError:
# head is not yet set to the ref our HEAD points to