-
Notifications
You must be signed in to change notification settings - Fork 65
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
FTP upload fails on submodules with bare proxy setup #44
Comments
Something new here? Have the same problem ... |
Yeah, this is a case of "No one has written the functionality for this" yet. |
The submodules are not really stored in the bare repository, so you would need to also work with bare repository of the submodule itself and then upload it. |
For me the script would not continue.
I added after line 57
Around the codeblock on 417 i placed a try exception like
I know it's a nasty workaround but it will do for me. If someone wants a patch u can drop me a line. |
Tried to upload, got this error;
remote: Traceback (most recent call last):
remote: File "_/git-ftp.py", line 357, in
remote: main()
remote: File "_/git-ftp.py", line 107, in main
remote: upload_diff(repo, oldtree, tree, ftp, base)
remote: File "/***/git-ftp.py", line 299, in upload_diff
remote: module = node.module()
remote: File "/usr/local/lib/python2.6/dist-packages/GitPython-0.3.1-py2.6.egg/git/objects/submodule/util.py", line 30, in wrapper
remote: raise InvalidGitRepositoryError("Method '%s' cannot operate on bare repositories" % func.name)
remote: git.exc.InvalidGitRepositoryError: Method 'module' cannot operate on bare repositories
The text was updated successfully, but these errors were encountered: