Skip to content

Commit 6f19472

Browse files
committed
Merge pull request #73 from dl1ely/master
"Section not found" error when using -s switch on differently named branch
2 parents 9aee0f3 + f06f84f commit 6f19472

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

git-ftp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class SectionNotFound(Exception):
7373
pass
7474

7575

76-
def split_pattern(path):
76+
def split_pattern(path): # TODO: Improve skeevy code
7777
path = fnmatch.translate(path).split('\\/')
7878
for i, p in enumerate(path[:-1]):
7979
if p:
@@ -303,7 +303,7 @@ def get_ftp_creds(repo, options):
303303
options.ftp.ssl = False
304304

305305
try:
306-
options.ftp.gitftpignore = cfg.get(options.branch, 'gitftpignore')
306+
options.ftp.gitftpignore = cfg.get(options.section, 'gitftpignore')
307307
except ConfigParser.NoOptionError:
308308
options.ftp.gitftpignore = '.gitftpignore'
309309
else:

0 commit comments

Comments
 (0)