summaryrefslogtreecommitdiff
path: root/git-checkout.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2006-06-21 01:24:45 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2006-06-21 01:24:45 -0700
commitad9f72a7042e22d871c7c6441e8b220b7142d40f (patch)
treee8406e084272930a6c2cfb6c8452ad55d29aa1a5 /git-checkout.sh
parentMerge branch 'jn/web' into next (diff)
parentcheckout -f: do not leave untracked working tree files. (diff)
downloadtgif-ad9f72a7042e22d871c7c6441e8b220b7142d40f.tar.xz
Merge branch 'master' into next
* master: checkout -f: do not leave untracked working tree files. Log peer address when git-daemon called from inetd
Diffstat (limited to 'git-checkout.sh')
-rwxr-xr-xgit-checkout.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/git-checkout.sh b/git-checkout.sh
index 564117f006..77c2593809 100755
--- a/git-checkout.sh
+++ b/git-checkout.sh
@@ -137,8 +137,7 @@ fi
if [ "$force" ]
then
- git-read-tree --reset $new &&
- git-checkout-index -q -f -u -a
+ git-read-tree --reset -u $new
else
git-update-index --refresh >/dev/null
merge_error=$(git-read-tree -m -u $old $new 2>&1) || (