Experimenting with installing git_deploy, I used drush to deploy libraries and then git_deploy. When I enabled git_deploy, the glip library was cloned into sites/all/libraries/glip/glip (so sites/all/libraries/glip/glip/README, for example). The library wasn't found at admin/reports/status, so I moved the library into sites/all/libraries/glip (so sites/all/libraries/glip/README)

Then I got:

Exception: object not found: 9ee03ffe4325534b30bb73e8bd1fc55e47bcdf6b in Git->getRawObject() (line 401 of /home/rfay/workspace/drupal7/sites/all/libraries/glip/lib/git.class.php).

Maybe that means it's working?

Comments

halstead’s picture

Thank you for the feedback. That means glip has loaded and it's trying to do its thing. Do you know what repository 9ee03ffe4325534b30bb73e8bd1fc55e47bcdf6b might be from?

rfay’s picture

I wasn't able to find where that's from.

cd drupal
find . -name "9ee0*" 

found nothing. But my object spelunking skills may not be up to the necessary level.

halstead’s picture

Doesn't look like it's part of the official project/drupal repository. Does
git show 9ee03ffe4325534b30bb73e8bd1fc55e47bcdf6b
return anything other than "bad object" in any of your repositories?

I'd like to track down the repository that causes this problem.

rfay’s picture

Actually, I found it right away. It's in libraries. And it seems that since I have libraries as a git submodule, it shows up in my main repo as well.

commit 9ee03ffe4325534b30bb73e8bd1fc55e47bcdf6b
Author: sun <sun@unleashedmind.com>
Date:   Thu Jan 27 02:31:41 2011 +0000

    Preparing new release.

diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index d5ff3a8..aa03914 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -2,31 +2,11 @@
 
 Libraries 7.x-1.x, xxxx-xx-xx
 -----------------------------
-#1028744 by tstoeckler: Code clean-up.
-#1023322 by tstoeckler, sun: Fixed libraries shouldn't be loaded multiple times
-#1024080 by hswong3i, tstoeckler: Fixed installation profile retrieval.
-#995988 by good_man: Wrong default install profile.
rfay’s picture

Had another episode today right after drush dl advanced_help which *replaced* an existing bit of advanced_help (probably from an old-fashioned drush dl from the past). In this case the object it choked on is in fact in advanced_help.

rfay@rfay-toshiba:~/workspace/d7git/sites/all/modules$ drush en -y advanced_help
WD php: Exception: object not found:                                 [error]
ea33e1d4c02d2096c7fa209fdbc38d7bc6ff56d5 in Git->getRawObject() (line
401 of
/home/rfay/workspace/d7git/sites/all/modules/git_deploy/glip/lib/git.class.php).
Exception: object not found: ea33e1d4c02d2096c7fa209fdbc38d7bc6ff56d5 in Git->getRawObject() (line 401 of /home/rfay/workspace/d7git/sites/all/modules/git_deploy/glip/lib/git.class.php).
Drush command terminated abnormally due to an unrecoverable error.   [error]
aaron’s picture

I'm experiencing the same issue, when hitting the modules page:

Exception: object not found: 4112e5e387db6e46719a0d33d02f0f0e037d2154 in Git->getRawObject() (line 401 of /var/www/test-site/sites/all/libraries/glip/lib/git.class.php).

the commit in question seems to be from emfield.

aaron’s picture

that's in the d6 version for me, of course.

aaron’s picture

$ git show 4112e5e387db6e46719a0d33d02f0f0e037d2154
fatal: bad object 4112e5e387db6e46719a0d33d02f0f0e037d2154

aaron’s picture

however, when doing a fresh clone, i see:

$ git show 4112e5e387db6e46719a0d33d02f0f0e037d2154
commit 4112e5e387db6e46719a0d33d02f0f0e037d2154
Author: aaronwinborn <aaron@aaronwinborn.com>
Date:   Thu Apr 7 17:12:27 2011 -0400

    by aaron: Use module_hook when invoking hook_emfield_widget_extra_file_included

diff --git a/emfield.cck.inc b/emfield.cck.inc
index 6132053..6c9f6a1 100644
--- a/emfield.cck.inc
+++ b/emfield.cck.inc
@@ -253,7 +253,7 @@ function _emfield_emfield_widget(&$form, &$form_state, $field, $items, $delta =
     // In Drupal 6, we need to build multipart/form-data forms manually.
     // We'll invoke hook_emfield_widget_extra_file_included() for the module,
     // and if it returns TRUE we'll build that form correctly.
-    if (function_exists($module_extra. '_emfield_widget_extra_file_included')) {
+    if (module_hook($module_extra, 'emfield_widget_extra_file_included')) {
       if (call_user_func_array($module_extra. '_emfield_widget_extra_file_included', $args)) {
         $form['#attributes'] = array('enctype' => "multipart/form-data");
       }
aaron’s picture

the issue for me was that i'm using svn, and hadn't committed the new git objects after a fresh pull. sorry for the noise. Although it might indicate the need for a friendlier message than a fatal error when the git objects aren't present.

pfrenssen’s picture

I encountered this error today. I could solve it by disabling the git cache in drush.

rfay’s picture

Got it again. But I haven't been using drush's git caching any more... That doesn't mean there's not an object somewhere in this site that had something to do with it.

Error message
Exception: object not found: 60d1fabd428ac1bd14040cdf865b60989d487a0b in Git->getRawObject() (line 401 of /home/rfay/workspace/d7git/sites/all/modules/git_deploy/glip/lib/git.class.php).
halstead’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev

Git_deploy 2 solves this problem for Drupal 7 by replacing Glip with the git binary. Still a problem in Drupal 6 for now.

darren oh’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)