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

Deploy fails on Git submodules #15

Open
tmysik opened this issue Feb 10, 2012 · 3 comments
Open

Deploy fails on Git submodules #15

tmysik opened this issue Feb 10, 2012 · 3 comments

Comments

@tmysik
Copy link

tmysik commented Feb 10, 2012

For example (app/components/DataGrid is a Git submodule):

put: STOR app/components/DataGrid
get: 150 Ok to send data.
/usr/lib/ruby/1.8/net/ftp.rb:454:in `read': Is a directory - app/components/DataGrid (Errno::EISDIR)
        from /usr/lib/ruby/1.8/net/ftp.rb:454:in `storbinary'
        from /usr/lib/ruby/1.8/net/ftp.rb:453:in `loop'
        from /usr/lib/ruby/1.8/net/ftp.rb:453:in `storbinary'
        from /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
        from /usr/lib/ruby/1.8/net/ftp.rb:450:in `storbinary'
        from /usr/lib/ruby/1.8/net/ftp.rb:562:in `putbinaryfile'
        from /usr/lib/ruby/1.8/net/ftp.rb:591:in `put'
        from /home/gapon/bin/git-deploy:440:in `put'
        from /home/gapon/bin/git-deploy:230:in `upload'
        from /home/gapon/bin/git-deploy:216:in `each'
        from /home/gapon/bin/git-deploy:216:in `upload'
        from /home/gapon/bin/git-deploy:141:in `automate'
        from /home/gapon/bin/git-deploy:568
        from /home/gapon/bin/git-deploy:519:in `each'
        from /home/gapon/bin/git-deploy:519
@aizatto
Copy link
Owner

aizatto commented Feb 11, 2012

I can confirm this because I never built the util to support submodules.

@tmysik
Copy link
Author

tmysik commented Feb 13, 2012

And do you plan to have a look at this issue please? Unfortunately, your app is then useless with such Git projects :/

Thanks.

@Yogu
Copy link

Yogu commented Oct 3, 2012

I came over the same issue and made a little patch for basic submodule support: https://github.com/Yogu/git-deploy

I quote my commit message for the limitations:

When uploading to an empty directory, submodules are skipped and user is instructed to upload the submodules manually.

On updating to a newer version, git-upload now checks whether any of the submodules were changed. If so, the changed files are uploaded.

At this point, git-upload does not support adding or removing submodules. Removals of submodules are ignored, and adding a submodule results in a warning displayed.

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

3 participants