Commit 9326d49
committed
Remove total confusion from git-fetch and git-push
The config file is not the only place remotes are defined, and without
consulting .git/remotes and .git/branches, you won't know if "origin" is
configured by the user. Don't give up too early and insult the user with
a wisecrack "Where do you want to fetch from today?"
The only thing the previous patch seems to want to prevent from happening
is a lazy "git fetch/push" that does not say where-from/to to produce an
error message 'origin not found', and we can do that by not letting
add_url_alias() to turn a nickname "origin" literally into a pathname
"origin" without changing the rest of the logic.
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent fa685bd commit 9326d49
1 file changed
+3
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | 108 | | |
119 | 109 | | |
120 | 110 | | |
| |||
665 | 655 | | |
666 | 656 | | |
667 | 657 | | |
668 | | - | |
669 | | - | |
670 | | - | |
671 | | - | |
672 | | - | |
673 | | - | |
674 | | - | |
| 658 | + | |
| 659 | + | |
675 | 660 | | |
676 | 661 | | |
677 | 662 | | |
678 | 663 | | |
679 | 664 | | |
680 | 665 | | |
681 | | - | |
| 666 | + | |
682 | 667 | | |
683 | 668 | | |
684 | 669 | | |
| |||
0 commit comments