Reload branch name from DB before updating

pull/115/merge
morpheus65535 7 years ago
parent 85939c4cbf
commit c515dcefd1

@ -25,6 +25,7 @@ def gitconfig():
def check_and_apply_update(): def check_and_apply_update():
gitconfig() gitconfig()
branch = get_general_settings()[5]
g = git.cmd.Git(current_working_directory) g = git.cmd.Git(current_working_directory)
result = g.diff('--shortstat', 'origin/' + branch) result = g.diff('--shortstat', 'origin/' + branch)
if len(result) == 0: if len(result) == 0:

Loading…
Cancel
Save