Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'NoneType' object has no attribute 'startswith' #81

Open
daris opened this issue Dec 4, 2014 · 1 comment
Open

AttributeError: 'NoneType' object has no attribute 'startswith' #81

daris opened this issue Dec 4, 2014 · 1 comment

Comments

@daris
Copy link

daris commented Dec 4, 2014

Remote Path: /
Use SSL? n
Should I write ftp details to .git/ftpdata? y
INFO: Base directory is /
Traceback (most recent call last):
    File "/Users/programista/bin/git-ftp.py", line 489, in <module>
        main()
    File "/Users/programista/bin/git-ftp.py", line 163, in main
        gitftpignore = os.path.join(repo.working_dir, options.ftp.gitftpignore)
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/posixpath.py", line 75, in join
        if b.startswith('/'):
AttributeError: 'NoneType' object has no attribute 'startswith'

I got this after configuring ftp details. Running again git-ftp.py worked (it uploaded new changes). OSX Yosemite

@muellermartin
Copy link

I can confirm this bug and it's still not fixed.

It seems the variable options.ftp.gitftpignore in line 163 is set to None when the interactive configuration finished. I'm pretty sure this can be resolved by setting options.ftp.gitftpignore to a default value solves the error. A close look into the code reveals that the function get_ftp_creds() does only set a default value if the config file exists, which explains the symptoms.

Maybe I'll prepare a pull request, but this project seems somewhat dead, so I have no hope it will get merged, which would be a waste of time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants