Permalink
Browse files

Critical bug fix in upload_all()

Files might not be going where they should be if we change the cwd only
if a tree has some subtrees.
  • Loading branch information...
1 parent e6db531 commit ffe1806bbecd69d1e296189447906d4ba292527e @nviennot nviennot committed with ezyang Nov 2, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 git-ftp.py
View
@@ -169,6 +169,7 @@ def upload_all(tree, ftp, base):
pass
upload_all(subtree, ftp, '/'.join((base, subtree.name)))
+ ftp.cwd(base)
for blob in tree.blobs:
logging.info('Uploading ' + '/'.join((base, blob.name)))
try:

0 comments on commit ffe1806

Please sign in to comment.