1
0
mirror of https://github.com/git/git.git synced 2024-09-28 08:49:45 +02:00
Git Source Code Mirror. Please follow Documentation/SubmittingPatches procedure for any of your improvements.
Go to file
Johannes Schindelin da0204df58 fetch: if not fetching from default remote, ignore default merge
When doing "git fetch <remote>" on a remote that does not have the
branch referenced in branch.<current-branch>.merge, git fetch failed.
It failed because it tried to add the "merge" ref to the refs to be
fetched.

Fix that.  And add a test case.

Incidentally, this unconvered a bug in our own test suite, where
"git pull <some-path>" was expected to merge the ref given in the
defaults, even if not pulling from the default remote.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
2007-10-16 01:24:18 -04:00
arm
compat
contrib Merge branch 'master' into db/fetch-pack 2007-10-16 00:15:25 -04:00
Documentation Support 'push --dry-run' for http transport 2007-10-16 00:36:35 -04:00
git-gui Merge branch 'maint' of git://repo.or.cz/git-gui into maint 2007-09-17 23:50:17 -07:00
gitweb gitweb: No difftree output for trivial merge 2007-09-23 23:12:22 -07:00
mozilla-sha1
perl
ppc
t fetch: if not fetching from default remote, ignore default merge 2007-10-16 01:24:18 -04:00
templates
xdiff
.gitignore makefile: Add a cscope target 2007-10-15 21:09:15 -04:00
.mailmap
alloc.c
archive-tar.c Fix the expansion pattern of the pseudo-static path buffer. 2007-09-20 22:19:17 -07:00
archive-zip.c preserve executable bits in zip archives 2007-09-18 14:56:55 -07:00
archive.h
attr.c Use xmemdupz() in many places. 2007-09-18 17:42:17 -07:00
attr.h
base85.c
blob.c
blob.h
builtin-add.c Use xmemdupz() in many places. 2007-09-18 17:42:17 -07:00
builtin-annotate.c
builtin-apply.c builtin-apply: fix conversion error in strbuf series 2007-10-03 17:42:52 -07:00
builtin-archive.c strbuf change: be sure ->buf is never ever NULL. 2007-09-29 02:13:33 -07:00
builtin-blame.c strbuf_read_file enhancement, and use it. 2007-09-29 21:26:10 -07:00
builtin-branch.c
builtin-bundle.c Move bundle specific stuff into bundle.[ch] 2007-09-19 03:22:30 -07:00
builtin-cat-file.c
builtin-check-attr.c Full rework of quote_c_style and write_name_quoted. 2007-09-20 23:45:49 -07:00
builtin-check-ref-format.c
builtin-checkout-index.c Full rework of quote_c_style and write_name_quoted. 2007-09-20 23:45:49 -07:00
builtin-commit-tree.c Now that cache.h needs strbuf.h, remove useless includes. 2007-09-16 17:30:03 -07:00
builtin-config.c git-config: handle --file option with relative pathname properly 2007-10-15 21:07:38 -04:00
builtin-count-objects.c
builtin-describe.c
builtin-diff-files.c
builtin-diff-index.c
builtin-diff-tree.c
builtin-diff.c
builtin-fetch--tool.c strbuf change: be sure ->buf is never ever NULL. 2007-09-29 02:13:33 -07:00
builtin-fetch-pack.c Ensure builtin-fetch honors {fetch,transfer}.unpackLimit 2007-09-19 03:22:31 -07:00
builtin-fetch.c fetch: if not fetching from default remote, ignore default merge 2007-10-16 01:24:18 -04:00
builtin-fmt-merge-msg.c Use xmemdupz() in many places. 2007-09-18 17:42:17 -07:00
builtin-for-each-ref.c Merge branch 'ph/strbuf' 2007-10-03 03:06:02 -07:00
builtin-fsck.c
builtin-gc.c git-gc --auto: simplify "repack" command line building 2007-10-15 20:50:05 -04:00
builtin-grep.c Split grep arguments in a way that does not requires to add /dev/null. 2007-09-14 15:16:43 -07:00
builtin-http-fetch.c Modularize commit-walker 2007-09-19 03:22:30 -07:00
builtin-init-db.c
builtin-log.c Use xmemdupz() in many places. 2007-09-18 17:42:17 -07:00
builtin-ls-files.c Merge branch 'ph/strbuf' 2007-10-03 03:06:02 -07:00
builtin-ls-tree.c Full rework of quote_c_style and write_name_quoted. 2007-09-20 23:45:49 -07:00
builtin-mailinfo.c
builtin-mailsplit.c
builtin-merge-base.c
builtin-merge-file.c
builtin-mv.c Use xmemdupz() in many places. 2007-09-18 17:42:17 -07:00
builtin-name-rev.c
builtin-pack-objects.c Merge branch 'jc/autogc' 2007-10-03 03:05:32 -07:00
builtin-pack-refs.c
builtin-prune-packed.c
builtin-prune.c
builtin-push.c Fix 'push --all branch...' error handling 2007-10-16 00:25:56 -04:00
builtin-read-tree.c
builtin-reflog.c
builtin-rerere.c rerere: Fix use of an empty strbuf.buf 2007-09-26 23:34:01 -07:00
builtin-reset.c
builtin-rev-list.c Merge branch 'mv/unknown' 2007-10-03 04:28:24 -07:00
builtin-rev-parse.c
builtin-revert.c Use xmemdupz() in many places. 2007-09-18 17:42:17 -07:00
builtin-rm.c
builtin-runstatus.c
builtin-shortlog.c Use xmemdupz() in many places. 2007-09-18 17:42:17 -07:00
builtin-show-branch.c
builtin-show-ref.c
builtin-stripspace.c Clean up stripspace a bit, use strbuf even more. 2007-09-27 00:33:33 -07:00
builtin-symbolic-ref.c
builtin-tag.c strbuf_read_file enhancement, and use it. 2007-09-29 21:26:10 -07:00
builtin-tar-tree.c
builtin-unpack-objects.c
builtin-update-index.c double free in builtin-update-index.c 2007-09-29 01:40:19 -07:00
builtin-update-ref.c
builtin-upload-archive.c
builtin-verify-pack.c
builtin-verify-tag.c
builtin-write-tree.c
builtin.h Merge branch 'master' into db/fetch-pack 2007-10-16 00:15:25 -04:00
bundle.c Move bundle specific stuff into bundle.[ch] 2007-09-19 03:22:30 -07:00
bundle.h Move bundle specific stuff into bundle.[ch] 2007-09-19 03:22:30 -07:00
cache-tree.c Small cache_tree_write refactor. 2007-09-26 02:27:06 -07:00
cache-tree.h Small cache_tree_write refactor. 2007-09-26 02:27:06 -07:00
cache.h Merge branch 'master' into db/fetch-pack 2007-10-16 00:15:25 -04:00
check-builtins.sh
check-racy.c
color.c
color.h
combine-diff.c Full rework of quote_c_style and write_name_quoted. 2007-09-20 23:45:49 -07:00
commit.c Merge branch 'maint' 2007-10-15 22:31:47 -04:00
commit.h
config.c
config.mak.in
configure.ac the ar tool is called gar on some systems 2007-10-02 21:10:25 -07:00
connect.c Merge branch 'master' into db/fetch-pack 2007-10-16 00:15:25 -04:00
convert.c Fix in-place editing functions in convert.c 2007-10-15 21:38:09 -04:00
copy.c
COPYING
csum-file.c
csum-file.h
ctype.c
daemon.c
date.c parse_date_format(): convert a format name to an enum date_mode 2007-09-29 20:31:59 -07:00
decorate.c
decorate.h
delta.h
diff-delta.c
diff-lib.c
diff.c Merge branch 'ph/strbuf' 2007-10-03 03:06:02 -07:00
diff.h
diffcore-break.c
diffcore-delta.c
diffcore-order.c Use xmemdupz() in many places. 2007-09-18 17:42:17 -07:00
diffcore-pickaxe.c
diffcore-rename.c rename diff_free_filespec_data_large() to diff_free_filespec_blob() 2007-10-02 21:02:09 -07:00
diffcore.h rename diff_free_filespec_data_large() to diff_free_filespec_blob() 2007-10-02 21:02:09 -07:00
dir.c Introduce remove_dir_recursively() 2007-09-30 00:04:39 -07:00
dir.h Introduce remove_dir_recursively() 2007-09-30 00:04:39 -07:00
dump-cache-tree.c
entry.c strbuf change: be sure ->buf is never ever NULL. 2007-09-29 02:13:33 -07:00
environment.c
exec_cmd.c
exec_cmd.h
fast-import.c strbuf change: be sure ->buf is never ever NULL. 2007-09-29 02:13:33 -07:00
fetch-pack.h Always obtain fetch-pack arguments from struct fetch_pack_args 2007-09-19 03:22:31 -07:00
fixup-builtins
generate-cmdlist.sh
git-add--interactive.perl git add -i: Remove unused variables 2007-10-15 21:00:40 -04:00
git-am.sh Merge branch 'jc/autogc' 2007-10-03 03:05:32 -07:00
git-archimport.perl
git-bisect.sh
git-checkout.sh post-checkout hook, tests, and docs 2007-09-29 21:11:21 -07:00
git-clean.sh Supplant the "while case ... break ;; esac" idiom 2007-09-23 16:12:00 -07:00
git-clone.sh
git-commit.sh Merge branch 'jc/autogc' 2007-10-03 03:05:32 -07:00
git-compat-util.h Add xmemdupz() that duplicates a block of memory, and NUL terminates it. 2007-09-18 03:07:58 -07:00
git-cvsexportcommit.perl
git-cvsimport.perl
git-cvsserver.perl
git-filter-branch.sh Supplant the "while case ... break ;; esac" idiom 2007-09-23 16:12:00 -07:00
git-instaweb.sh instaweb: support for Ruby's WEBrick server 2007-10-15 21:36:19 -04:00
git-lost-found.sh
git-ls-remote.sh Supplant the "while case ... break ;; esac" idiom 2007-09-23 16:12:00 -07:00
git-merge-octopus.sh
git-merge-one-file.sh
git-merge-ours.sh
git-merge-resolve.sh
git-merge-stupid.sh
git-merge.sh Merge branch 'lh/merge' 2007-10-03 03:05:58 -07:00
git-mergetool.sh mergetool: Fix typo in options passed to kdiff3 2007-09-28 22:26:05 -04:00
git-parse-remote.sh
git-pull.sh Make git-pull complain and give advice when there is nothing to merge with 2007-10-02 17:27:48 -07:00
git-quiltimport.sh quiltimport: Skip non-existent patches 2007-09-27 16:19:19 -07:00
git-rebase--interactive.sh Merge branch 'maint' 2007-10-15 22:31:47 -04:00
git-rebase.sh Merge branch 'maint' 2007-09-23 17:13:55 -07:00
git-relink.perl
git-remote.perl git-remote: exit with non-zero status after detecting error in "rm". 2007-09-29 23:34:19 -07:00
git-repack.sh Merge branch 'jc/autogc' 2007-10-03 03:05:32 -07:00
git-request-pull.sh
git-send-email.perl send-email --smtp-server-port: allow overriding the default port 2007-09-26 13:27:45 -07:00
git-sh-setup.sh git-sh-setup: typofix in comments 2007-09-15 16:33:22 -07:00
git-stash.sh
git-submodule.sh Fix adding a submodule with a remote url 2007-09-29 23:36:02 -07:00
git-svn.perl git-svn: respect Subversion's [auth] section configuration values 2007-10-15 21:28:48 -04:00
git-svnimport.perl Fix pool handling in git-svnimport to avoid memory leaks. 2007-09-24 23:00:52 -07:00
GIT-VERSION-GEN GIT 1.5.3.4 2007-10-03 02:33:48 -07:00
git.c Merge branch 'master' into db/fetch-pack 2007-10-16 00:15:25 -04:00
git.spec.in
gitk
grep.c
grep.h
hash-object.c
help.c
http-push.c Support 'push --dry-run' for http transport 2007-10-16 00:36:35 -04:00
http-walker.c Modularize commit-walker 2007-09-19 03:22:30 -07:00
http.c Properly cleanup in http_cleanup so builtin-fetch does not segfault 2007-09-19 03:22:31 -07:00
http.h Make function to refill http queue a callback 2007-09-19 03:22:30 -07:00
ident.c
imap-send.c strbuf change: be sure ->buf is never ever NULL. 2007-09-29 02:13:33 -07:00
index-pack.c
INSTALL Mention 'cpio' dependency in INSTALL 2007-10-02 17:35:29 -07:00
interpolate.c Merge branch 'mv/unknown' 2007-10-03 04:28:24 -07:00
interpolate.h
list-objects.c
list-objects.h
lockfile.c
log-tree.c Merge branch 'maint' 2007-10-15 22:31:47 -04:00
log-tree.h
mailmap.c
mailmap.h
Makefile Merge branch 'master' into db/fetch-pack 2007-10-16 00:15:25 -04:00
match-trees.c
merge-file.c
merge-index.c
merge-recursive.c Merge branch 'ph/strbuf' 2007-10-03 03:06:02 -07:00
merge-tree.c
mktag.c Now that cache.h needs strbuf.h, remove useless includes. 2007-09-16 17:30:03 -07:00
mktree.c Rework unquote_c_style to work on a strbuf. 2007-09-20 23:32:18 -07:00
object-refs.c
object.c
object.h
pack-check.c
pack-redundant.c
pack-write.c Refactor index-pack "keep $sha1" handling for reuse 2007-09-19 03:22:30 -07:00
pack.h Refactor index-pack "keep $sha1" handling for reuse 2007-09-19 03:22:30 -07:00
pager.c
patch-delta.c
patch-id.c
patch-ids.c
patch-ids.h
path-list.c
path-list.h
path.c
peek-remote.c
pkt-line.c
pkt-line.h
progress.c
progress.h
quote.c strbuf change: be sure ->buf is never ever NULL. 2007-09-29 02:13:33 -07:00
quote.h sq_quote_argv and add_to_string rework with strbuf's. 2007-09-21 03:31:18 -07:00
reachable.c
reachable.h
read-cache.c Move make_cache_entry() from merge-recursive.c into read-cache.c 2007-09-26 13:42:10 -07:00
README
receive-pack.c Refactor index-pack "keep $sha1" handling for reuse 2007-09-19 03:22:30 -07:00
reflog-walk.c
reflog-walk.h
refs.c Merge branch 'master' into db/fetch-pack 2007-10-16 00:15:25 -04:00
refs.h
RelNotes Whip post 1.5.3.4 maintenance series into shape. 2007-10-15 22:29:50 -04:00
remote.c Fix a crash in ls-remote when refspec expands into nothing 2007-10-15 20:40:50 -04:00
remote.h Remove duplicate ref matches in fetch 2007-10-15 20:28:06 -04:00
revision.c Merge branch 'maint' 2007-10-15 22:31:47 -04:00
revision.h
run-command.c
run-command.h
send-pack.c Merge branch 'master' into db/fetch-pack 2007-10-16 00:15:25 -04:00
server-info.c
setup.c
sha1_file.c Merge branch 'ph/strbuf' 2007-10-03 03:06:02 -07:00
sha1_name.c
shallow.c
shell.c Support cvs via git-shell 2007-10-15 21:25:42 -04:00
show-index.c
sideband.c
sideband.h
strbuf.c strbuf_read_file enhancement, and use it. 2007-09-29 21:26:10 -07:00
strbuf.h strbuf_read_file enhancement, and use it. 2007-09-29 21:26:10 -07:00
symlinks.c
tag.c Use xmemdupz() in many places. 2007-09-18 17:42:17 -07:00
tag.h
tar.h
test-absolute-path.c
test-chmtime.c
test-date.c
test-delta.c
test-genrandom.c
test-match-trees.c
test-sha1.c
test-sha1.sh
trace.c sq_quote_argv and add_to_string rework with strbuf's. 2007-09-21 03:31:18 -07:00
transport.c Support 'push --dry-run' for http transport 2007-10-16 00:36:35 -04:00
transport.h Merge branch 'master' into db/fetch-pack 2007-10-16 00:15:25 -04:00
tree-diff.c
tree-walk.c
tree-walk.h
tree.c
tree.h
unpack-file.c
unpack-trees.c
unpack-trees.h
update-server-info.c
upload-pack.c
usage.c
utf8.c
utf8.h
var.c
walker.c Merge branch 'master' into db/fetch-pack 2007-10-16 00:15:25 -04:00
walker.h Modularize commit-walker 2007-09-19 03:22:30 -07:00
write_or_die.c
wt-status.c Fix the rename detection limit checking 2007-09-14 12:12:57 -07:00
wt-status.h
xdiff-interface.c
xdiff-interface.h

////////////////////////////////////////////////////////////////

	GIT - the stupid content tracker

////////////////////////////////////////////////////////////////

"git" can mean anything, depending on your mood.

 - random three-letter combination that is pronounceable, and not
   actually used by any common UNIX command.  The fact that it is a
   mispronunciation of "get" may or may not be relevant.
 - stupid. contemptible and despicable. simple. Take your pick from the
   dictionary of slang.
 - "global information tracker": you're in a good mood, and it actually
   works for you. Angels sing, and a light suddenly fills the room.
 - "goddamn idiotic truckload of sh*t": when it breaks

Git is a fast, scalable, distributed revision control system with an
unusually rich command set that provides both high-level operations
and full access to internals.

Git is an Open Source project covered by the GNU General Public License.
It was originally written by Linus Torvalds with help of a group of
hackers around the net. It is currently maintained by Junio C Hamano.

Please read the file INSTALL for installation instructions.
See Documentation/tutorial.txt to get started, then see
Documentation/everyday.txt for a useful minimum set of commands,
and "man git-commandname" for documentation of each command.
CVS users may also want to read Documentation/cvs-migration.txt.

Many Git online resources are accessible from http://git.or.cz/
including full documentation and Git related tools.

The user discussion and development of Git take place on the Git
mailing list -- everyone is welcome to post bug reports, feature
requests, comments and patches to git@vger.kernel.org. To subscribe
to the list, send an email with just "subscribe git" in the body to
majordomo@vger.kernel.org. The mailing list archives are available at
http://marc.theaimsgroup.com/?l=git and other archival sites.

The messages titled "A note from the maintainer", "What's in
git.git (stable)" and "What's cooking in git.git (topics)" and
the discussion following them on the mailing list give a good
reference for project status, development direction and
remaining tasks.