I keep on getting the following error which prevents Drupal from loading at all (so that's why I have hesitantly marked this critical):
Exception: bad reference: HEAD in Git->revParse() (line 460 of /Users/davereid/Dropbox/Projects/drupal7dev/sites/all/libraries/glip/lib/git.class.php).
Let me know if I can help backtracing or debugging this further.
Comments
Comment #1
dave reidNote: Just using standard default Drush (not the git caching as far as I know). I manually checkout my installs using the Git instructions tab.
Comment #2
dave reidTo reproduce:
1. Create a new 'empty' module (with a proper .info file and a blank .module file).
2. Run git init the module's directory to create a new git repo, but do not add any files.
3. Enable the module.
4. Try to visit update status or modules page and you will get the fatal error.
Comment #3
Freso commentedThere are some known problems with various versions of the Glip library. Are you still having this issue? If so, which tag/hash is your Glip clone at?
Comment #4
fgmSimilar problem here on 6.x:
Exception: object not found: 8e663f7c786d50f729150a5855340526f5a79014 in Git->getRawObject() (line 438 of (hidden)/all/libraries/glip/lib/git.class.php)Reproduced with:
- both Glip "1.0" and current master (commit 79f5472af4b9261d20f51e92f07d4cca01e83a2c , aka DamZ' alternate repositories support, on 2011-03-04).
- FWIW, this is on Pressflow 6.22.104. Tested with both default PF caching and Cacherouter RC2: same results.
- Tested with both Drush 4 and web mode: same results.
For visitors:
UPDATE system SET status = 0 WHERE name = 'git_deploy'returns the system to usability, luckily.Comment #5
sunConfirming #4.
Though, in my case, it is caused by a
git --referenceclone, which I did just today. Verified by deleting that module directory.Comment #6
sun#1235044: halstead/glip 1.0 is outdated, doesn't contain fix for --reference resolved my issue, so back to needs more info.
Comment #7
chris.stone commentedIn reference to #6 I'm working on getting a stable glip released on my github. I am considering glip to be stable when I have a full test stack supporting the api. I'm using simpletest with the hope that the test stack can be run through the simpletest module.
Comment #8
Freso commentedNo reply for more than a month. Closing as duplicate of #1235044: halstead/glip 1.0 is outdated, doesn't contain fix for --reference.
Comment #9
darren oh