diff options
| author | Junio C Hamano <junkio@cox.net> | 2006-12-20 13:56:14 -0800 |
|---|---|---|
| committer | Junio C Hamano <junkio@cox.net> | 2006-12-20 13:56:14 -0800 |
| commit | aa1cef54a2bcc5350df7efe1d1745725c46bf2e3 (patch) | |
| tree | b8cbf49ff59b92c36de05d08f2dfd32c4aeb538b /git-pull.sh | |
| parent | compat/inet_ntop: do not use u_int (diff) | |
| parent | Move "no merge candidate" warning into git-pull (diff) | |
| download | git-aa1cef54a2bcc5350df7efe1d1745725c46bf2e3.tar.gz git-aa1cef54a2bcc5350df7efe1d1745725c46bf2e3.zip | |
Merge branch 'jc/clone'
* jc/clone:
Move "no merge candidate" warning into git-pull
Use preprocessor constants for environment variable names.
Do not create $GIT_DIR/remotes/ directory anymore.
Introduce GIT_TEMPLATE_DIR
Revert "fix testsuite: make sure they use templates freshly built from the source"
fix testsuite: make sure they use templates freshly built from the source
git-clone: lose the traditional 'no-separate-remote' layout
git-clone: lose the artificial "first" fetch refspec
git-pull: refuse default merge without branch.*.merge
git-clone: use wildcard specification for tracking branches
Diffstat (limited to 'git-pull.sh')
| -rwxr-xr-x | git-pull.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/git-pull.sh b/git-pull.sh index e23beb685d..1703091bbb 100755 --- a/git-pull.sh +++ b/git-pull.sh @@ -76,6 +76,10 @@ merge_head=$(sed -e '/ not-for-merge /d' \ case "$merge_head" in '') + curr_branch=$(git-symbolic-ref HEAD | \ + sed -e 's|^refs/heads/||') + echo >&2 "Warning: No merge candidate found because value of config option + \"branch.${curr_branch}.merge\" does not match any remote branch fetched." echo >&2 "No changes." exit 0 ;; |
