From 47ac37be2e0e14e958ad24dc8cba1fa4b7f78700 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 21 Jan 2015 08:52:23 +0100 Subject: 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 --- git/repo/fun.py | 1 + 1 file changed, 1 insertion(+) (limited to 'git/repo') 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): -- cgit v1.2.3