summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2010-11-26 11:35:36 +0100
committerSebastian Thiel <byronimo@gmail.com>2010-11-26 11:35:36 +0100
commit2fbb7027ec88e2e4fe7754f22a27afe36813224b (patch)
treecf6dc327fcac64e724fe9db62278eaa8fb3fa19d
parentf8ce24a835cae8c623e2936bec2618a8855c605b (diff)
downloadgitpython-2fbb7027ec88e2e4fe7754f22a27afe36813224b.tar.gz
Commit.create_from_tree used a now renamed keyword parameter - no test-case ever runs this code, which is still an issue
-rw-r--r--git/objects/commit.py2
-rw-r--r--git/refs/symbolic.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/git/objects/commit.py b/git/objects/commit.py
index 69a3adc4..fd4187b0 100644
--- a/git/objects/commit.py
+++ b/git/objects/commit.py
@@ -355,7 +355,7 @@ class Commit(base.Object, Iterable, Diffable, Traversable, Serializable):
# head is not yet set to the ref our HEAD points to
# Happens on first commit
import git.refs
- master = git.refs.Head.create(repo, repo.head.ref, commit=new_commit, logmsg="commit (initial): %s" % message)
+ master = git.refs.Head.create(repo, repo.head.ref, new_commit, logmsg="commit (initial): %s" % message)
repo.head.set_reference(master, logmsg='commit: Switching to %s' % master)
# END handle empty repositories
# END advance head handling
diff --git a/git/refs/symbolic.py b/git/refs/symbolic.py
index 9937cf0c..aec68750 100644
--- a/git/refs/symbolic.py
+++ b/git/refs/symbolic.py
@@ -478,7 +478,8 @@ class SymbolicReference(object):
created at, i.e. "NEW_HEAD" or "symrefs/my_new_symref"
:param reference:
- The reference to which the new symbolic reference should point to
+ The reference to which the new symbolic reference should point to.
+ If it is a commit'ish, the symbolic ref will be detached.
:param force:
if True, force creation even if a symbolic reference with that name already exists.