diff options
| author | Jeff King <peff@peff.net> | 2011-03-25 14:13:31 -0400 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2011-04-03 12:35:39 -0700 |
| commit | 8c8674fc954d8c4bc46f303a141f510ecf264fcd (patch) | |
| tree | 7051d86def82068ed533d8d8209289e91aaed9d4 /git-pull.sh | |
| parent | 44ec754dc766e38684d9ad4563019378730eea82 (diff) | |
| download | git-8c8674fc954d8c4bc46f303a141f510ecf264fcd.tar.xz | |
pull: do not clobber untracked files on initial pull
For a pull into an unborn branch, we do not use "git merge"
at all. Instead, we call read-tree directly. However, we
used the --reset parameter instead of "-m", which turns off
the safety features.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-pull.sh')
| -rwxr-xr-x | git-pull.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-pull.sh b/git-pull.sh index f6b7b84048..c98c0fc32e 100755 --- a/git-pull.sh +++ b/git-pull.sh @@ -272,7 +272,7 @@ esac if test -z "$orig_head" then git update-ref -m "initial pull" HEAD $merge_head "$curr_head" && - git read-tree --reset -u HEAD || exit 1 + git read-tree -m -u HEAD || exit 1 exit fi |
