From ca87edcc739c697e90b0b0339635f6179939b31e Mon Sep 17 00:00:00 2001 From: Olivier Martin Date: Fri, 16 Oct 2015 21:33:24 +0100 Subject: [PATCH] Only update git-rev.txt when there was something to do --- git-ftp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-ftp.py b/git-ftp.py index f4453ee..3c7e935 100755 --- a/git-ftp.py +++ b/git-ftp.py @@ -176,8 +176,8 @@ def main(): logging.info('Nothing to do!') else: upload_diff(repo, oldtree, tree, ftp, [base], patterns) + ftp.storbinary('STOR git-rev.txt', cStringIO.StringIO(commit.hexsha)) - ftp.storbinary('STOR git-rev.txt', cStringIO.StringIO(commit.hexsha)) ftp.quit()