summaryrefslogtreecommitdiff
path: root/git/repo/fun.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2015-01-21 08:52:23 +0100
committerSebastian Thiel <byronimo@gmail.com>2015-01-21 08:53:14 +0100
commit47ac37be2e0e14e958ad24dc8cba1fa4b7f78700 (patch)
treec7544cb324a1141628e281828bc4f9bda295ae5c /git/repo/fun.py
parentbb0f3d78d6980a1d43f05cb17a8da57a196a34f3 (diff)
downloadgitpython-47ac37be2e0e14e958ad24dc8cba1fa4b7f78700.tar.gz
Assured that branch changes are properly handled.
Previously we could try to remove the branch we are on. Of course, we have a test-case elaborate enough to verify we don't destroy changes in submodules accidentally. Therefore I am confident that this implementation is correct. Fixes #49
Diffstat (limited to 'git/repo/fun.py')
-rw-r--r--git/repo/fun.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/git/repo/fun.py b/git/repo/fun.py
index 2a1270be..2321dbc8 100644
--- a/git/repo/fun.py
+++ b/git/repo/fun.py
@@ -26,6 +26,7 @@ __all__ = ('rev_parse', 'is_git_dir', 'touch', 'find_git_dir', 'name_to_object',
def touch(filename):
fp = open(filename, "ab")
fp.close()
+ return filename
def is_git_dir(d):