1. 21 3月, 2010 13 次提交
  2. 20 3月, 2010 5 次提交
    • I
      daemon: parse_host_and_port SIGSEGV if port is specified · e9bd3235
      Imre Deak 提交于
      This typo will lead to git-daemon dying any time the connect
      string includes a port after the host= attribute. This can lead
      for example to one of the following error messages on the client
      side when someone tries git clone git://...:<port>.
      
      When the daemon is running on localhost:
        fatal: The remote end hung up unexpectedly
      
      or when the daemon is connected through an ssh tunnel:
        fatal: protocol error: bad line length character: erro
      
      In the latter case 'erro' comes from the daemon's reply:
        error: git-daemon died of signal 11
      Signed-off-by: NImre Deak <imre.deak@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      e9bd3235
    • J
      Makefile: Fix occasional GIT-CFLAGS breakage · a673cfed
      Jonathan Nieder 提交于
      GNU make’s target-specific variables facility has one weird facet: any
      variables set for a given target apply to all of its dependencies,
      too.  For example, when running “make exec_cmd.o”, since exec_cmd.o
      depends on GIT-CFLAGS, the variable assignment in
      
      	exec_cmd.s exec_cmd.o: ALL_CFLAGS += \
      		'-DGIT_EXEC_PATH="$(gitexecdir_SQ)"' \
      		'-DBINDIR="$(bindir_relative_SQ)"' \
      		'-DPREFIX="$(prefix_SQ)"'
      
      applies when refreshing GIT-CFLAGS, and the extra options get included
      in the tracked compiler flags.  If an object file like this is the
      first target built, GIT-CFLAGS will appear to be out of date,
      resulting in useless rebuilds and the dreaded “new build flags or
      prefix” message.
      
      This does not happen with every build because GIT-CFLAGS is only
      refreshed once in a given “make” run, and usually the first target
      does not set any variables.  When this problem does rear its head, it
      is very annoying.
      
      So put target-specific flags in a separate EXTRA_CPPFLAGS variable
      that is not included in $(TRACK_CFLAGS).
      Signed-off-by: NJonathan Nieder <jrnieder@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      a673cfed
    • J
      Makefile: Fix CDPATH problem · c40d92e4
      Jonathan Nieder 提交于
      If CDPATH is set, "cd" prints its destination to stdout, causing
      the common (cd a && tar cf - .) | (cd b && tar xf -) idiom to fail.
      For example:
      
       make -C templates DESTDIR='' install
       make[1]: Entering directory `/users/e477610/exptool/src/git-1.7.0.2/templates'
       install -d -m 755 '/home/e477610/exptool/share/git-core/templates'
       (cd blt && gtar cf - .) | \
      	(cd '/home/e477610/exptool/share/git-core/templates' && umask 022 && gtar xof -)
       gtar: This does not look like a tar archive
      
      Most git scripts already protect against use of CDPATH through
      git-sh-setup, but the Makefile doesn’t.
      Reported-by: NMichael Cox <mhcox@bluezoosoftware.com>
      Signed-off-by: NJonathan Nieder <jrnieder@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      c40d92e4
    • B
      a502ab93
    • S
      pull: replace unnecessary sed invocation · 0d12e59f
      Stephen Boyd 提交于
      Getting the shortened branch name is as easy as using the shell's
      parameter expansion.
      Signed-off-by: NStephen Boyd <bebarino@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      0d12e59f
  3. 18 3月, 2010 3 次提交
  4. 17 3月, 2010 1 次提交
    • J
      Merge branch 'maint' · 60dafdd3
      Junio C Hamano 提交于
      * maint:
        Documentation/git-read-tree: clarify 2-tree merge
        Documentation/git-read-tree: fix table layout
      60dafdd3
  5. 16 3月, 2010 2 次提交
  6. 15 3月, 2010 5 次提交
    • J
      Merge branch 'sd/format-patch-to' · c24138bc
      Junio C Hamano 提交于
      * sd/format-patch-to:
        send-email: add --no-cc, --no-to, and --no-bcc
        format-patch: add --no-cc, --no-to, and --no-add-headers
        format-patch: use a string_list for headers
        Add 'git format-patch --to=' option and 'format.to' configuration variable.
      c24138bc
    • J
      Merge branch 'tc/http-cleanup' · 78d909a4
      Junio C Hamano 提交于
      * tc/http-cleanup:
        remote-curl: init walker only when needed
        remote-curl: use http_fetch_ref() instead of walker wrapper
        http: init and cleanup separately from http-walker
        http-walker: cleanup more thoroughly
        http-push: remove "|| 1" to enable verbose check
        t554[01]-http-push: refactor, add non-ff tests
        t5541-http-push: check that ref is unchanged for non-ff test
      78d909a4
    • J
      Merge branch 'tc/transport-verbosity' · 53997a30
      Junio C Hamano 提交于
      * tc/transport-verbosity:
        transport: update flags to be in running order
        fetch and pull: learn --progress
        push: learn --progress
        transport->progress: use flag authoritatively
        clone: support multiple levels of verbosity
        push: support multiple levels of verbosity
        fetch: refactor verbosity option handling into transport.[ch]
        Documentation/git-push: put --quiet before --verbose
        Documentation/git-pull: put verbosity options before merge/fetch ones
        Documentation/git-clone: mention progress in -v
      
      Conflicts:
      	transport.h
      53997a30
    • J
      Merge branch 'ld/push-porcelain' · 66bce02e
      Junio C Hamano 提交于
      * ld/push-porcelain:
        t5516: Use test_cmp when appropriate
        git-push: add tests for git push --porcelain
        git-push: make git push --porcelain print "Done"
        git-push: send "To <remoteurl>" messages to the standard output in --porcelain mode
        git-push: fix an advice message so it goes to stderr
      
      Conflicts:
      	transport.c
      66bce02e
    • J
      Merge branch 'jh/notes' · 2949151f
      Junio C Hamano 提交于
      * jh/notes: (33 commits)
        Documentation: fix a few typos in git-notes.txt
        notes: fix malformed tree entry
        builtin-notes: Minor (mostly parse_options-related) fixes
        builtin-notes: Add "copy" subcommand for copying notes between objects
        builtin-notes: Misc. refactoring of argc and exit value handling
        builtin-notes: Add -c/-C options for reusing notes
        builtin-notes: Refactor handling of -F option to allow combining -m and -F
        builtin-notes: Deprecate the -m/-F options for "git notes edit"
        builtin-notes: Add "append" subcommand for appending to note objects
        builtin-notes: Add "add" subcommand for adding notes to objects
        builtin-notes: Add --message/--file aliases for -m/-F options
        builtin-notes: Add "list" subcommand for listing note objects
        Documentation: Generalize git-notes docs to 'objects' instead of 'commits'
        builtin-notes: Add "prune" subcommand for removing notes for missing objects
        Notes API: prune_notes(): Prune notes that belong to non-existing objects
        t3305: Verify that removing notes triggers automatic fanout consolidation
        builtin-notes: Add "remove" subcommand for removing existing notes
        Teach builtin-notes to remove empty notes
        Teach notes code to properly preserve non-notes in the notes tree
        t3305: Verify that adding many notes with git-notes triggers increased fanout
        ...
      
      Conflicts:
      	Makefile
      2949151f
  7. 14 3月, 2010 6 次提交
  8. 13 3月, 2010 3 次提交
  9. 12 3月, 2010 2 次提交