Permalink
Browse files

Make switch_barclamps_to assume less about where it is being run from.

  • Loading branch information...
1 parent 39aed9a commit 7cdc8bcc26d6c422d5daf4dc06db77a0cb645468 @VictorLowther VictorLowther committed Feb 23, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 build_lib.sh
View
@@ -703,9 +703,9 @@ switch_barclamps_to() {
fi
done < <(in_repo git ls-tree HEAD barclamps/)
for bc in "$CROWBAR_DIR/barclamps/"*; do
- bc="${bc#$CROWBAR_DIR/}"
[[ -d $bc/.git || -f $bc/.git ]] || \
- in_repo git submodule update --init "$bc"
+ in_repo git submodule update --init "${bc#$CROWBAR_DIR/}"
+ bc="${bc#$CROWBAR_DIR/}"
ref=$(in_barclamp "${bc##*/}" git rev-parse --verify -q HEAD)
if [[ ${barclamps[$bc]} ]]; then
[[ $ref = $(in_barclamp "${bc##*/}" \

0 comments on commit 7cdc8bc

Please sign in to comment.