Skip to content

Commit

Permalink
allow git-rev.txt to have a newline after hash
Browse files Browse the repository at this point in the history
  • Loading branch information
Umeku committed Aug 22, 2012
1 parent bde9622 commit 33eda32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-ftp.py
Expand Up @@ -98,7 +98,7 @@ def main():
hashFile = cStringIO.StringIO()
try:
ftp.retrbinary('RETR git-rev.txt', hashFile.write)
hash = hashFile.getvalue()
hash = hashFile.getvalue().strip()
except ftplib.error_perm:
pass

Expand Down

0 comments on commit 33eda32

Please sign in to comment.