mislav/git-deploy — Issue #27: bundler install fails on gems from git sources
Author: troex
Created: 2012-03-09 17:17:28+00:00
State: open

When I'm updating my Gemlock.file deploy fails on `bundle install`:

```
$ git diff HEAD^1
diff --git a/Gemfile.lock b/Gemfile.lock
index c207a64..356afa8 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -8,7 +8,7 @@ GIT

GIT
remote: git://github.com/troex/APNS.git
- revision: e02c653b183e80e5732f308b2e5f26f868f3a8e2
+ revision: 34f92db82ae708b97551484113816df59ab751c8
specs:
apns (0.9.0)

$ git push amiget
Counting objects: 5, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 343 bytes, done.
Total 3 (delta 2), reused 0 (delta 0)
remote: HEAD is now at 302631b update APNS gem
remote: files changed: 1
remote: Fetching source index for https://rubygems.org/
remote: fatal: Not a git repository: '.git'
remote: Updating git://github.com/troex/APNS.git
remote: fatal: Not a git repository: '.git'
remote: Git error: command `git fetch --force --quiet --tags 'git://github.com/troex/APNS.git' "refs/heads/*:refs/heads/*"` in directory /var/www/apns.amiget.com/app/vendor/bundle/ruby/1.9.1/cache/bundler/git/APNS-cda91886ee68df538b8678105b9abb9553ec394b has failed.
remote: If this error persists you could try removing the cache directory '/var/www/apns.amiget.com/app/vendor/bundle/ruby/1.9.1/cache/bundler/git/APNS-cda91886ee68df538b8678105b9abb9553ec394b'
To apns@saturn.amiget.com:app
57289b2..302631b master -> master

$ grep APNS Gemfile
gem 'apns', :git => 'git://github.com/troex/APNS.git'
```