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

dave reid’s picture

Note: Just using standard default Drush (not the git caching as far as I know). I manually checkout my installs using the Git instructions tab.

dave reid’s picture

To 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.

Freso’s picture

Status: Active » Postponed (maintainer needs more info)

There 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?

fgm’s picture

Similar 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.

sun’s picture

Status: Postponed (maintainer needs more info) » Active

Confirming #4.

Though, in my case, it is caused by a git --reference clone, which I did just today. Verified by deleting that module directory.

sun’s picture

Status: Active » Postponed (maintainer needs more info)
chris.stone’s picture

In 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.

Freso’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

No reply for more than a month. Closing as duplicate of #1235044: halstead/glip 1.0 is outdated, doesn't contain fix for --reference.

darren oh’s picture