diff options
author | Jason Riedy <ejr@EECS.Berkeley.EDU> | 2007-01-16 04:31:29 +0300 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-01-16 09:23:21 +0300 |
commit | 2aad957a519b354e248da8c76ee0d3997083dde6 (patch) | |
tree | 258b4f061def13b863c31d06e3a30114de413e1a /git-reset.sh | |
parent | fb9522062c89da61f5ccbaa1d063e0754463176f (diff) |
Replace "echo -n" with printf in shell scripts.
Not all echos know -n. This was causing a test failure in
t5401-update-hooks.sh, but not t3800-mktag.sh for some reason.
Signed-off-by: Jason Riedy <ejr@cs.berkeley.edu>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-reset.sh')
-rwxr-xr-x | git-reset.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-reset.sh b/git-reset.sh index 91c7e6e664..bf2a0581fe 100755 --- a/git-reset.sh +++ b/git-reset.sh @@ -87,7 +87,7 @@ update_ref_status=$? case "$reset_type" in --hard ) test $update_ref_status = 0 && { - echo -n "HEAD is now at " + printf "HEAD is now at " GIT_PAGER= git log --max-count=1 --pretty=oneline \ --abbrev-commit HEAD } |