diff options
author | André Glüpker <git@wgmd.de> | 2019-01-13 19:53:05 +0100 |
---|---|---|
committer | André Glüpker <git@wgmd.de> | 2019-01-13 19:53:05 +0100 |
commit | 45c98655e184563ed176b7a2b6f8dadd50610873 (patch) | |
tree | 20cdb3c66d471b0078ffcfac66ec1e86b20fac17 /updateGit.py | |
parent | d621d12eb4cce56e21a0be78c4e7b950827250c8 (diff) | |
download | update-git-45c98655e184563ed176b7a2b6f8dadd50610873.tar.gz update-git-45c98655e184563ed176b7a2b6f8dadd50610873.tar.bz2 update-git-45c98655e184563ed176b7a2b6f8dadd50610873.zip |
Cleanup unused variable
Diffstat (limited to 'updateGit.py')
-rwxr-xr-x | updateGit.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/updateGit.py b/updateGit.py index de1bbc5..648176b 100755 --- a/updateGit.py +++ b/updateGit.py @@ -53,7 +53,6 @@ def findChanges(statusoutput): def updatePath(path): friendly_path = os.path.basename(path) dPrint('Repository:', path) - head = getGitStdout(path, 'rev-parse --abbrev-ref HEAD') changed = findChanges(getGitStdout(path, 'status --porcelain')) cur_branch = getGitStdout(path, 'rev-parse --abbrev-ref HEAD') @@ -126,7 +125,7 @@ def updatePath(path): # print('Safe branch:', safe_branch) # Checkout master, if detached HEAD and not proceeded - if head == 'HEAD': + if cur_branch == 'HEAD': if changed: print('[%s] Head detached, but changes found. Stash them to checkout %s.' % ( friendly_path, |