chiark / gitweb /
test suite: lib-reprepro: Add a couple of comments
[dgit.git] / tests / tartree-edit
index 96a5bcb..40bd6e9 100755 (executable)
@@ -5,7 +5,7 @@ fail () { echo >&2 "$0: $*"; exit 1; }
 play=.git/tartree-edit-work
 
 git_manip_play () {
-       local wd=$(pwd)
+       local wd; wd=$(pwd)
        case "$wd" in
        *.edit) fail "bad idea to run gitfetchinfo into a .edit tree!" ;;
        esac
@@ -127,7 +127,7 @@ tryat_gitfetchinfo () {
                exec 3<&-
        fi
 
-       local innerwd="$(echo $play/*)"
+       local innerwd; innerwd="$(echo $play/*)"
 
        git for-each-ref --format='%(refname)' refs/remotes >$play/l
        perl -w -ne '