Closed benjamin-bader closed 10 years ago
Try blowing away /home/squash/web/tmp/repos/af27dac12eff9b6caf58bd0a0aff05d90524b25e.git
, or at least, verifying that git --git-dir=/home/squash/web/tmp/repos/af27dac12eff9b6caf58bd0a0aff05d90524b25e.git fetch
works or fails.
Interesting! I'd already deleted and re-created the repo, unfortunately to no effect. Passing --git-dir
gives the same error message. Since --git-dir
is supposed to be given the path to the .git
directory, that makes sense.
git --git-dir=/home/squash/web/tmp/repos/af27dac12eff9b6caf58bd0a0aff05d90524b25e.git fetch
fails, but
git --git-dir=/home/squash/web/tmp/repos/af27dac12eff9b6caf58bd0a0aff05d90524b25e.git/.git fetch
works.
Is this actually a Squash issue? It seems like this is the sort of problem that everyone would have if it were.
How did you recreate the repo? Using Squash? Squash creates mirror repos, which are different than just running a normal git clone
.
Using Squash, AFAIK. The clone process appeared to begin the first time I posted to notify
. Incidentally, that timed out, but the repo is pretty big and the clone appeared to finish, so whatevs.
As an update, I tried installing squash again, this time on Ubuntu lucid. Using git 1.7.0.4 (the default from apt-get), everything works. My immediate problem is resolved, but maybe something in the docs should indicate known-good git versions?
The read me does specify Git 1.7+ is required.
The readme does say that, yes - the version of git in Ubuntu 12.04, where this bug was observed, is git version 1.7.9.5
. I was referring to an upper bound on git versions, not a lower bound :)
I noticed that posting to
api/1.0/notify
never resulted in any Occurrences being created. After tailing the production log, it seems that either Squash or ruby-git is confused:I've attempted to track down why this is failing, but without much success. I can manually
git fetch "origin"
, using the Passenger user. In the rails console,Git.open("/path/to/tmp/repo").fetch("origin")
succeeds by returning the empty string. As far as my middling git knowledge can tell, the repository is intact and accessible. Any idea what could be going wrong?Using Ubuntu 12.04, nginx, and Passenger on MRI 1.9.3-p484, FWIW.