diff options
Diffstat (limited to 'share')
-rwxr-xr-x | share/hydra/module-verify | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/share/hydra/module-verify b/share/hydra/module-verify index 29e9930..19cfd73 100755 --- a/share/hydra/module-verify +++ b/share/hydra/module-verify @@ -35,11 +35,14 @@ HASH_SUBMODULE="`git submodule | grep -E "modules/$MODULE( |$)" | awk '{ print $ cd $HYDRA_FOLDER/modules/$MODULE -HASH_MODULE="`git log -1 "$HASH_SUBMODULE" | head -n 1 | awk '{ print $2 }' | sed -e 's/\+//'`" +BRANCH="`git branch`" +HASH_MODULE="`git log -1 | grep "^commit" | awk '{ print $2 }' | sed -e 's/\+//'`" if [ "$HASH_MODULE" != "$HASH_SUBMODULE" ]; then - echo "Module $MODULE: commit not found!:" - echo "Commit: $HASH_SUBMODULE" + echo "Module $MODULE: hash differ!!:" + echo "Module: $HASH_MODULE" + echo "Submodule: $HASH_SUBMODULE" + echo "Branch: $BRANCH" exit 1 fi |