commit - 67c65ed764e7542fc784be76cd535c4073c813c3
commit + 4f3c844beaeb6a0b30565833e0481b8de9a5106e
blob - 5b6177b6a11ae192f3557adf2123f4900a55dc4a
blob + 4765f7e169b5a1009aa5f38fc148e35c702fda31
--- got/got.c
+++ got/got.c
if (error != NULL)
goto done;
- if (upa.did_something)
- printf("Updated to commit %s\n", commit_id_str);
- else
+ if (upa.did_something) {
+ printf("Updated to %s: %s\n",
+ got_worktree_get_head_ref_name(worktree), commit_id_str);
+ } else
printf("Already up-to-date\n");
print_update_progress_stats(&upa);
done:
NULL);
if (error)
goto done;
- if (upa.did_something)
- printf("Updated to commit %s\n", commit_id_str);
+ if (upa.did_something) {
+ printf("Updated to %s: %s\n",
+ got_worktree_get_head_ref_name(worktree),
+ commit_id_str);
+ }
print_update_progress_stats(&upa);
}
}
blob - fd9564bb22907b2388e1e98c18ad7bce29eb6417
blob + f49f14f4cb25858d75221abe2eef12ed8b318ae2
--- regress/cmdline/branch.sh
+++ regress/cmdline/branch.sh
> $testroot/stdout.expected
echo "refs/heads/updatebranch" >> $testroot/stdout.expected
echo "U gamma/delta" >> $testroot/stdout.expected
- echo "Updated to commit $commit_id0" >> $testroot/stdout.expected
+ echo "Updated to refs/heads/updatebranch: $commit_id0" \
+ >> $testroot/stdout.expected
cmp -s $testroot/stdout.expected $testroot/stdout
ret="$?"
blob - cfed5721b9edd249a44ddebe704e3b23d22c9ffa
blob + d2b9ef37e4422a8ab8e017e17df21a7c6f3be7e8
--- regress/cmdline/commit.sh
+++ regress/cmdline/commit.sh
echo "modified alpha, too" > $testroot/wt/alpha
echo "C alpha" > $testroot/stdout.expected
- echo -n "Updated to commit " >> $testroot/stdout.expected
+ echo -n "Updated to refs/heads/master: " >> $testroot/stdout.expected
git_show_head $testroot/repo >> $testroot/stdout.expected
echo >> $testroot/stdout.expected
echo "Files with new merge conflicts: 1" >> $testroot/stdout.expected
blob - f37ba4bf1d3fe1e51e68ca9e0b816cee4a0ba474
blob + 5d259e7e69fb72c30e2d546a71895f1edb136f69
--- regress/cmdline/diff.sh
+++ regress/cmdline/diff.sh
sed -i 's/8/88/' $testroot/wt/numbers
echo "C numbers" > $testroot/stdout.expected
- echo -n "Updated to commit $head_rev" >> $testroot/stdout.expected
+ echo -n "Updated to refs/heads/master: $head_rev" \
+ >> $testroot/stdout.expected
echo >> $testroot/stdout.expected
echo "Files with new merge conflicts: 1" >> $testroot/stdout.expected
blob - e511ff90472b8cd260a9254f5545b19c2a6e2623
blob + 8e7009b68305bcecb73914412de27d91708eb4ef
--- regress/cmdline/stage.sh
+++ regress/cmdline/stage.sh
echo "modified alpha, too" > $testroot/wt/alpha
echo "C alpha" > $testroot/stdout.expected
- echo -n "Updated to commit " >> $testroot/stdout.expected
+ echo -n "Updated to refs/heads/master: " >> $testroot/stdout.expected
git_show_head $testroot/repo >> $testroot/stdout.expected
echo >> $testroot/stdout.expected
echo "Files with new merge conflicts: 1" >> $testroot/stdout.expected
blob - 115ad4e02c4a245334f6fd2b1c8db185b26e2046
blob + 77a893caaab771d9316277cdf751daf903d8707f
--- regress/cmdline/status.sh
+++ regress/cmdline/status.sh
sed -i 's/7/77/' $testroot/wt/numbers
echo "G numbers" > $testroot/stdout.expected
- echo -n "Updated to commit " >> $testroot/stdout.expected
+ echo -n "Updated to refs/heads/master: " >> $testroot/stdout.expected
git_show_head $testroot/repo >> $testroot/stdout.expected
echo >> $testroot/stdout.expected
sed -i 's/2/22/' $testroot/wt/numbers
echo "G numbers" > $testroot/stdout.expected
- echo -n "Updated to commit " >> $testroot/stdout.expected
+ echo -n "Updated to refs/heads/master: " >> $testroot/stdout.expected
git_show_head $testroot/repo >> $testroot/stdout.expected
echo >> $testroot/stdout.expected
sed -i 's/2/77/' $testroot/wt/numbers
echo "C numbers" > $testroot/stdout.expected
- echo -n "Updated to commit " >> $testroot/stdout.expected
+ echo -n "Updated to refs/heads/master: " >> $testroot/stdout.expected
git_show_head $testroot/repo >> $testroot/stdout.expected
echo >> $testroot/stdout.expected
echo "Files with new merge conflicts: 1" >> $testroot/stdout.expected
blob - 978c9327b52f6cef6b7132cbec888901629b735c
blob + cae602420f097ed69b049e9fffb3fc46510d2de5
--- regress/cmdline/update.sh
+++ regress/cmdline/update.sh
git_commit $testroot/repo -m "modified alpha"
echo "U alpha" > $testroot/stdout.expected
- echo -n "Updated to commit " >> $testroot/stdout.expected
+ echo -n "Updated to refs/heads/master: " >> $testroot/stdout.expected
git_show_head $testroot/repo >> $testroot/stdout.expected
echo >> $testroot/stdout.expected
git_commit $testroot/repo -m "adding a new file"
echo "A gamma/new" > $testroot/stdout.expected
- echo -n "Updated to commit " >> $testroot/stdout.expected
+ echo -n "Updated to refs/heads/master: " >> $testroot/stdout.expected
git_show_head $testroot/repo >> $testroot/stdout.expected
echo >> $testroot/stdout.expected
git_commit $testroot/repo -m "deleting a file"
echo "D beta" > $testroot/stdout.expected
- echo -n "Updated to commit " >> $testroot/stdout.expected
+ echo -n "Updated to refs/heads/master: " >> $testroot/stdout.expected
git_show_head $testroot/repo >> $testroot/stdout.expected
echo >> $testroot/stdout.expected
git_commit $testroot/repo -m "deleting a directory"
echo "D epsilon/zeta" > $testroot/stdout.expected
- echo -n "Updated to commit " >> $testroot/stdout.expected
+ echo -n "Updated to refs/heads/master: " >> $testroot/stdout.expected
git_show_head $testroot/repo >> $testroot/stdout.expected
echo >> $testroot/stdout.expected
# update back to first commit and expect psi/mu to be deleted
echo "D psi/mu" > $testroot/stdout.expected
- echo "Updated to commit $first_rev" >> $testroot/stdout.expected
+ echo "Updated to refs/heads/master: $first_rev" \
+ >> $testroot/stdout.expected
(cd $testroot/wt && got update -c $first_rev > $testroot/stdout)
# update back to first commit and expect psi/mu to be deleted
echo "D psi/chi/tau" > $testroot/stdout.expected
echo "D psi/mu" >> $testroot/stdout.expected
- echo "Updated to commit $first_rev" >> $testroot/stdout.expected
+ echo "Updated to refs/heads/master: $first_rev" \
+ >> $testroot/stdout.expected
(cd $testroot/wt && got update -c $first_rev > $testroot/stdout)
echo "U epsilon/zeta" > $testroot/stdout.expected
echo "A epsilon2/mu" >> $testroot/stdout.expected
- echo -n "Updated to commit " >> $testroot/stdout.expected
+ echo -n "Updated to refs/heads/master: " >> $testroot/stdout.expected
git_show_head $testroot/repo >> $testroot/stdout.expected
echo >> $testroot/stdout.expected
git_commit $testroot/repo -m "changing epsilon/zeta again"
echo "U epsilon/zeta" > $testroot/stdout.expected
- echo -n "Updated to commit " >> $testroot/stdout.expected
+ echo -n "Updated to refs/heads/master: " >> $testroot/stdout.expected
git_show_head $testroot/repo >> $testroot/stdout.expected
echo >> $testroot/stdout.expected
echo "U epsilon/zeta" > $testroot/stdout.expected
echo "A epsilon.txt" >> $testroot/stdout.expected
- echo -n "Updated to commit " >> $testroot/stdout.expected
+ echo -n "Updated to refs/heads/master: " >> $testroot/stdout.expected
git_show_head $testroot/repo >> $testroot/stdout.expected
echo >> $testroot/stdout.expected
git_commit $testroot/repo -m "changing epsilon/zeta again"
echo "U epsilon/zeta" > $testroot/stdout.expected
- echo -n "Updated to commit " >> $testroot/stdout.expected
+ echo -n "Updated to refs/heads/master: " >> $testroot/stdout.expected
git_show_head $testroot/repo >> $testroot/stdout.expected
echo >> $testroot/stdout.expected
echo "D epsilon/psi/chi/tau" >> $testroot/stdout.expected
echo "D epsilon/psi/mu" >> $testroot/stdout.expected
echo "A epsilon/psi/tau" >> $testroot/stdout.expected
- echo -n "Updated to commit " >> $testroot/stdout.expected
+ echo -n "Updated to refs/heads/master: " >> $testroot/stdout.expected
git_show_head $testroot/repo >> $testroot/stdout.expected
echo >> $testroot/stdout.expected
echo "D epsilon/psi/mu" >> $testroot/stdout.expected
echo "A epsilon-new/mu" >> $testroot/stdout.expected
echo "A epsilon-new/psi/tau" >> $testroot/stdout.expected
- echo -n "Updated to commit " >> $testroot/stdout.expected
+ echo -n "Updated to refs/heads/master: " >> $testroot/stdout.expected
git_show_head $testroot/repo >> $testroot/stdout.expected
echo >> $testroot/stdout.expected
echo "D snake.c" >> $testroot/stdout.expected
echo "A snscore/Makefile" >> $testroot/stdout.expected
echo "A snscore/snscore.c" >> $testroot/stdout.expected
- echo -n "Updated to commit " >> $testroot/stdout.expected
+ echo -n "Updated to refs/heads/master: " >> $testroot/stdout.expected
git_show_head $testroot/repo >> $testroot/stdout.expected
echo >> $testroot/stdout.expected
echo "A sss/snake/snake.6" >> $testroot/stdout.expected
echo "A sss/snake/snake.c" >> $testroot/stdout.expected
echo "A sss/snake/snake.h" >> $testroot/stdout.expected
- echo -n "Updated to commit " >> $testroot/stdout.expected
+ echo -n "Updated to refs/heads/master: " >> $testroot/stdout.expected
git_show_head $testroot/repo >> $testroot/stdout.expected
echo >> $testroot/stdout.expected
git_commit $testroot/repo -m "changed a file"
echo "U arch/alpha/Makefile" > $testroot/stdout.expected
- echo -n "Updated to commit " >> $testroot/stdout.expected
+ echo -n "Updated to refs/heads/master: " >> $testroot/stdout.expected
git_show_head $testroot/repo >> $testroot/stdout.expected
echo >> $testroot/stdout.expected
echo "C alpha" > $testroot/stdout.expected
echo "U beta" >> $testroot/stdout.expected
echo "G numbers" >> $testroot/stdout.expected
- echo -n "Updated to commit " >> $testroot/stdout.expected
+ echo -n "Updated to refs/heads/master: " >> $testroot/stdout.expected
git_show_head $testroot/repo >> $testroot/stdout.expected
echo >> $testroot/stdout.expected
echo "Files with new merge conflicts: 1" >> $testroot/stdout.expected
git_commit $testroot/repo -m "changed executable file"
echo "U xfile" > $testroot/stdout.expected
- echo -n "Updated to commit " >> $testroot/stdout.expected
+ echo -n "Updated to refs/heads/master: " >> $testroot/stdout.expected
git_show_head $testroot/repo >> $testroot/stdout.expected
echo >> $testroot/stdout.expected
git_commit $testroot/repo -m "not an executable file anymore"
echo "U xfile" > $testroot/stdout.expected
- echo -n "Updated to commit " >> $testroot/stdout.expected
+ echo -n "Updated to refs/heads/master: " >> $testroot/stdout.expected
git_show_head $testroot/repo >> $testroot/stdout.expected
echo >> $testroot/stdout.expected
rm $testroot/wt/alpha
echo "! alpha" > $testroot/stdout.expected
- echo -n "Updated to commit " >> $testroot/stdout.expected
+ echo -n "Updated to refs/heads/master: " >> $testroot/stdout.expected
git_show_head $testroot/repo >> $testroot/stdout.expected
echo >> $testroot/stdout.expected
(cd $testroot/wt && got update > $testroot/stdout)
(cd $testroot/wt && got update > $testroot/stdout)
echo "C gamma/new" > $testroot/stdout.expected
- echo -n "Updated to commit " >> $testroot/stdout.expected
+ echo -n "Updated to refs/heads/master: " >> $testroot/stdout.expected
git_show_head $testroot/repo >> $testroot/stdout.expected
echo >> $testroot/stdout.expected
echo "Files with new merge conflicts: 1" >> $testroot/stdout.expected
(cd $testroot/wt && got update > $testroot/stdout)
echo "G beta" > $testroot/stdout.expected
- echo -n "Updated to commit " >> $testroot/stdout.expected
+ echo -n "Updated to refs/heads/master: " >> $testroot/stdout.expected
git_show_head $testroot/repo >> $testroot/stdout.expected
echo >> $testroot/stdout.expected
cmp -s $testroot/stdout.expected $testroot/stdout
(cd $testroot/wt && got update > $testroot/stdout)
echo "G beta" > $testroot/stdout.expected
- echo -n "Updated to commit " >> $testroot/stdout.expected
+ echo -n "Updated to refs/heads/master: " >> $testroot/stdout.expected
git_show_head $testroot/repo >> $testroot/stdout.expected
echo >> $testroot/stdout.expected
cmp -s $testroot/stdout.expected $testroot/stdout
(cd $testroot/wt && got update > $testroot/stdout)
echo "D beta" > $testroot/stdout.expected
- echo -n "Updated to commit " >> $testroot/stdout.expected
+ echo -n "Updated to refs/heads/master: " >> $testroot/stdout.expected
git_show_head $testroot/repo >> $testroot/stdout.expected
echo >> $testroot/stdout.expected
cmp -s $testroot/stdout.expected $testroot/stdout
echo "U alpha" > $testroot/stdout.expected
echo "U beta" >> $testroot/stdout.expected
- echo -n "Updated to commit " >> $testroot/stdout.expected
+ echo -n "Updated to refs/heads/master: " >> $testroot/stdout.expected
git_show_head $testroot/repo >> $testroot/stdout.expected
echo >> $testroot/stdout.expected
fi
echo "U epsilon/zeta" > $testroot/stdout.expected
- echo -n "Updated to commit " >> $testroot/stdout.expected
+ echo -n "Updated to refs/heads/master: " >> $testroot/stdout.expected
git_show_head $testroot/repo >> $testroot/stdout.expected
echo >> $testroot/stdout.expected
echo "A new" > $testroot/stdout.expected
echo "A epsilon/new2" >> $testroot/stdout.expected
- echo -n "Updated to commit " >> $testroot/stdout.expected
+ echo -n "Updated to refs/heads/master: " >> $testroot/stdout.expected
git_show_head $testroot/repo >> $testroot/stdout.expected
echo >> $testroot/stdout.expected
git_commit $testroot/repo -m "modified two files"
echo "U epsilon/zeta" > $testroot/stdout.expected
- echo -n "Updated to commit " >> $testroot/stdout.expected
+ echo -n "Updated to refs/heads/master: " >> $testroot/stdout.expected
git_show_head $testroot/repo >> $testroot/stdout.expected
echo >> $testroot/stdout.expected
echo "Switching work tree from refs/heads/master to refs/heads/newbranch" > $testroot/stdout.expected
echo "C alpha" >> $testroot/stdout.expected
- echo -n "Updated to commit " >> $testroot/stdout.expected
+ echo -n "Updated to refs/heads/newbranch: " >> $testroot/stdout.expected
git_show_head $testroot/repo >> $testroot/stdout.expected
echo >> $testroot/stdout.expected
echo "Files with new merge conflicts: 1" >> $testroot/stdout.expected
echo "U epsilon/psi" > $testroot/stdout.expected
echo "C epsilon/zeta" >> $testroot/stdout.expected
- echo -n "Updated to commit " >> $testroot/stdout.expected
+ echo -n "Updated to refs/heads/master: " >> $testroot/stdout.expected
git_show_head $testroot/repo >> $testroot/stdout.expected
echo >> $testroot/stdout.expected
echo "Files with new merge conflicts: 1" >> $testroot/stdout.expected
(cd $testroot/repo && git tag -m "test" -a $tag)
echo "U alpha" > $testroot/stdout.expected
- echo -n "Updated to commit " >> $testroot/stdout.expected
+ echo -n "Updated to refs/heads/master: " >> $testroot/stdout.expected
git_show_head $testroot/repo >> $testroot/stdout.expected
echo >> $testroot/stdout.expected
local commit_id2=`git_show_head $testroot/repo`
echo "U xfile" > $testroot/stdout.expected
- echo -n "Updated to commit " >> $testroot/stdout.expected
+ echo -n "Updated to refs/heads/master: " >> $testroot/stdout.expected
git_show_head $testroot/repo >> $testroot/stdout.expected
echo >> $testroot/stdout.expected
fi
echo "U xfile" > $testroot/stdout.expected
- echo "Updated to commit $commit_id1" >> $testroot/stdout.expected
+ echo "Updated to refs/heads/master: $commit_id1" >> $testroot/stdout.expected
cmp -s $testroot/stdout.expected $testroot/stdout
ret="$?"
if [ "$ret" != "0" ]; then
fi
echo "U xfile" > $testroot/stdout.expected
- echo "Updated to commit $commit_id2" >> $testroot/stdout.expected
+ echo "Updated to refs/heads/master: $commit_id2" \
+ >> $testroot/stdout.expected
cmp -s $testroot/stdout.expected $testroot/stdout
ret="$?"
if [ "$ret" != "0" ]; then
fi
echo "# alpha" > $testroot/stdout.expected
- echo -n "Updated to commit " >> $testroot/stdout.expected
+ echo -n "Updated to refs/heads/master: " >> $testroot/stdout.expected
git_show_head $testroot/repo >> $testroot/stdout.expected
echo >> $testroot/stdout.expected
echo "Files not updated because of existing merge conflicts: 1" \
# This update only records the new base commit. Otherwise it is a
# no-op change because Got's file index does not track submodules.
- echo -n "Updated to commit " > $testroot/stdout.expected
+ echo -n "Updated to refs/heads/master: " > $testroot/stdout.expected
git_show_head $testroot/repo >> $testroot/stdout.expected
echo >> $testroot/stdout.expected
(cd $testroot/repo && git commit -q -m 'adding submodule')
echo "A .gitmodules" > $testroot/stdout.expected
- echo -n "Updated to commit " >> $testroot/stdout.expected
+ echo -n "Updated to refs/heads/master: " >> $testroot/stdout.expected
git_show_head $testroot/repo >> $testroot/stdout.expected
echo >> $testroot/stdout.expected
# No conflict occurs because 'got update' ignores the submodule
# and leaves the clashing file as it was.
echo "A .gitmodules" > $testroot/stdout.expected
- echo -n "Updated to commit " >> $testroot/stdout.expected
+ echo -n "Updated to refs/heads/master: " >> $testroot/stdout.expected
git_show_head $testroot/repo >> $testroot/stdout.expected
echo >> $testroot/stdout.expected
echo "A epsilon.link" >> $testroot/stdout.expected
echo "A nonexistent.link" >> $testroot/stdout.expected
echo "A passwd.link" >> $testroot/stdout.expected
- echo -n "Updated to commit " >> $testroot/stdout.expected
+ echo -n "Updated to refs/heads/master: " >> $testroot/stdout.expected
git_show_head $testroot/repo >> $testroot/stdout.expected
echo >> $testroot/stdout.expected
git_commit $testroot/repo -m "delete symlink"
echo "D alpha.link" > $testroot/stdout.expected
- echo -n "Updated to commit " >> $testroot/stdout.expected
+ echo -n "Updated to refs/heads/master: " >> $testroot/stdout.expected
git_show_head $testroot/repo >> $testroot/stdout.expected
echo >> $testroot/stdout.expected
echo "C new.link" >> $testroot/stdout.expected
echo "C nonexistent.link" >> $testroot/stdout.expected
echo "G zeta.link" >> $testroot/stdout.expected
- echo -n "Updated to commit " >> $testroot/stdout.expected
+ echo -n "Updated to refs/heads/master: " >> $testroot/stdout.expected
git_show_head $testroot/repo >> $testroot/stdout.expected
echo >> $testroot/stdout.expected
echo "Files with new merge conflicts: 7" >> $testroot/stdout.expected
fi
echo "U c" > $testroot/stdout.expected
- echo "Updated to commit $commit_id1" >> $testroot/stdout.expected
+ echo "Updated to refs/heads/master: $commit_id1" \
+ >> $testroot/stdout.expected
(cd $testroot/wt && got update -c $commit_id1 c \
> $testroot/stdout)
fi
echo "U c" > $testroot/stdout.expected
- echo "Updated to commit $commit_id2" >> $testroot/stdout.expected
+ echo "Updated to refs/heads/master: $commit_id2" \
+ >> $testroot/stdout.expected
(cd $testroot/wt && got update -c $commit_id2 c > $testroot/stdout)
fi
echo "D c" > $testroot/stdout.expected
- echo "Updated to commit $commit_id3" >> $testroot/stdout.expected
+ echo "Updated to refs/heads/master: $commit_id3" \
+ >> $testroot/stdout.expected
(cd $testroot/wt && got update -c $commit_id3 c \
> $testroot/stdout 2> $testroot/stderr)
fi
echo "D c" > $testroot/stdout.expected
- echo "Updated to commit $commit_id3" >> $testroot/stdout.expected
+ echo "Updated to refs/heads/master: $commit_id3" \
+ >> $testroot/stdout.expected
(cd $testroot/wt && got update -c $commit_id3 > $testroot/stdout)
cmp -s $testroot/stdout.expected $testroot/stdout
(cd $testroot/wt && got update -c $commit_id0 > $testroot/stdout)
echo "C beta" > $testroot/stdout.expected
- echo "Updated to commit $commit_id0" >> $testroot/stdout.expected
+ echo "Updated to refs/heads/master: $commit_id0" \
+ >> $testroot/stdout.expected
echo "Files with new merge conflicts: 1" >> $testroot/stdout.expected
cmp -s $testroot/stdout.expected $testroot/stdout
ret="$?"
# update to the latest commit again; this skips beta
(cd $testroot/wt && got update > $testroot/stdout)
echo "# beta" > $testroot/stdout.expected
- echo "Updated to commit $commit_id1" >> $testroot/stdout.expected
+ echo "Updated to refs/heads/master: $commit_id1" \
+ >> $testroot/stdout.expected
echo "Files not updated because of existing merge conflicts: 1" \
>> $testroot/stdout.expected
cmp -s $testroot/stdout.expected $testroot/stdout
# updating to the latest commit should now update beta
(cd $testroot/wt && got update > $testroot/stdout)
echo "U beta" > $testroot/stdout.expected
- echo "Updated to commit $commit_id1" >> $testroot/stdout.expected
+ echo "Updated to refs/heads/master: $commit_id1" \
+ >> $testroot/stdout.expected
cmp -s $testroot/stdout.expected $testroot/stdout
ret="$?"
if [ "$ret" != "0" ]; then
(cd $testroot/wt && got update > $testroot/stdout)
echo "~ beta" > $testroot/stdout.expected
- echo "Updated to commit $commit_id1" >> $testroot/stdout.expected
- echo "File paths obstructed by a non-regular file: 1" >> $testroot/stdout.expected
+ echo "Updated to refs/heads/master: $commit_id1" \
+ >> $testroot/stdout.expected
+ echo "File paths obstructed by a non-regular file: 1" \
+ >> $testroot/stdout.expected
cmp -s $testroot/stdout.expected $testroot/stdout
ret="$?"
if [ "$ret" != "0" ]; then
# updating to the latest commit should now update beta
(cd $testroot/wt && got update > $testroot/stdout)
echo "! beta" > $testroot/stdout.expected
- echo "Updated to commit $commit_id1" >> $testroot/stdout.expected
+ echo "Updated to refs/heads/master: $commit_id1" \
+ >> $testroot/stdout.expected
cmp -s $testroot/stdout.expected $testroot/stdout
ret="$?"
if [ "$ret" != "0" ]; then
echo "modified alpha" > $testroot/repo/alpha
git_commit $testroot/repo -m "modified alpha"
- echo -n "Updated to commit " >> $testroot/stdout.expected
+ echo -n "Updated to refs/heads/master: " >> $testroot/stdout.expected
git_show_head $testroot/repo >> $testroot/stdout.expected
echo >> $testroot/stdout.expected