1. 27 3月, 2012 7 次提交
  2. 21 3月, 2012 4 次提交
  3. 13 3月, 2012 6 次提交
    • J
      Git 1.7.9.4 · a4603481
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      a4603481
    • J
      Merge branch 'tr/maint-bundle-boundary' into maint · 92b7aacb
      Junio C Hamano 提交于
      "git bundle" did not record boundary commits correctly when there
      are many of them.
      
      By Thomas Rast
      * tr/maint-bundle-boundary:
        bundle: keep around names passed to add_pending_object()
        t5510: ensure we stay in the toplevel test dir
        t5510: refactor bundle->pack conversion
      92b7aacb
    • J
      Merge branch 'jc/maint-diff-patch-header' into maint · fce8b5d8
      Junio C Hamano 提交于
      "git diff-index" and its friends at the plumbing level showed the
      "diff --git" header and nothing else for a path whose cached stat
      info is dirty without actual difference when asked to produce a
      patch. This was a longstanding bug that we could have fixed long
      time ago.
      
      By Junio C Hamano
      * jc/maint-diff-patch-header:
        diff -p: squelch "diff --git" header for stat-dirty paths
        t4011: illustrate "diff-index -p" on stat-dirty paths
        t4011: modernise style
      fce8b5d8
    • J
      Merge branch 'jn/maint-do-not-match-with-unsanitized-searchtext' into maint · f629c233
      Junio C Hamano 提交于
      "gitweb" did use quotemeta() to prepare search string when asked to
      do a fixed-string project search, but did not use it by mistake and
      used the user-supplied string instead.
      
      By Jakub Narebski
      * jn/maint-do-not-match-with-unsanitized-searchtext:
        gitweb: Fix fixed string (non-regexp) project search
      f629c233
    • J
      Merge branch 'jc/am-3-nonstandard-popt' into maint · b91a13bb
      Junio C Hamano 提交于
      The code to synthesize the fake ancestor tree used by 3-way merge
      fallback in "git am" was not prepared to read a patch created with
      a non-standard -p<num> value.
      
      * jc/am-3-nonstandard-popt:
        test: "am -3" can accept non-standard -p<num>
        am -3: allow nonstandard -p<num> option
      b91a13bb
    • M
      config: report errors at the EOL with correct line number · 4b340593
      Martin Stenberg 提交于
      A section in a config file with a missing "]" reports the next line
      as bad, same goes to a value with a missing end quote.
      
      This happens because the error is not detected until the end of the
      line, when line number is already increased. Fix this by decreasing
      line number by one for these cases.
      Signed-off-by: NMartin Stenberg <martin@gnutiken.se>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      4b340593
  4. 10 3月, 2012 2 次提交
    • J
      fast-import: don't allow 'ls' of path with empty components · 178e1dea
      Jonathan Nieder 提交于
      As the fast-import manual explains:
      
      	The value of <path> must be in canonical form. That is it must
      	not:
      	. contain an empty directory component (e.g. foo//bar is invalid),
      	. end with a directory separator (e.g. foo/ is invalid),
      	. start with a directory separator (e.g. /foo is invalid),
      
      Unfortunately the "ls" command accepts these invalid syntaxes and
      responds by declaring that the indicated path is missing.  This is too
      subtle and causes importers to silently misbehave; better to error out
      so the operator knows what's happening.
      
      The C, R, and M commands already error out for such paths.
      Reported-by: NAndrew Sayers <andrew-git@pileofstuff.org>
      Analysis-by: NDavid Barr <davidbarr@google.com>
      Signed-off-by: NJonathan Nieder <jrnieder@gmail.com>
      178e1dea
    • J
      fast-import: leakfix for 'ls' of dirty trees · c27e559d
      Jonathan Nieder 提交于
      When the chosen directory has changed since it was last written to
      pack, "tree_content_get" makes a deep copy of its content to scribble
      on while computing the tree name, which we forgot to free.
      
      This leak has been present since the 'ls' command was introduced in
      v1.7.5-rc0~3^2~33 (fast-import: add 'ls' command, 2010-12-02).
      Signed-off-by: NJonathan Nieder <jrnieder@gmail.com>
      c27e559d
  5. 09 3月, 2012 1 次提交
  6. 07 3月, 2012 5 次提交
  7. 06 3月, 2012 4 次提交
  8. 05 3月, 2012 9 次提交
  9. 03 3月, 2012 2 次提交
    • M
      t0300: work around bug in dash 0.5.6 · 78ed1d2d
      Michael J Gruber 提交于
      The construct 'while IFS== read' makes dash 0.5.6 execute
      read without changing IFS, which results in test breakages
      all over the place in t0300.  Neither dash 0.5.5.1 and older
      nor dash 0.5.7 and newer are affected: The problem was
      introduded resp. fixed by the commits
      
        55c46b7 ([BUILTIN] Honor tab as IFS whitespace when
                 splitting fields in readcmd, 2009-08-11)
      
        1d806ac ([VAR] Do not poplocalvars prematurely on regular
                 utilities, 2010-05-27)
      
      in http://git.kernel.org/?p=utils/dash/dash.git
      
      Putting 'IFS==' before that line makes all versions of dash
      work.
      
      This looks like a dash bug, not a misinterpretation of the
      standard. However, it's worth working around for two
      reasons. One, this version of dash was released in Fedora
      14-16, so the bug is found in the wild. And two, at least
      one other shell, Solaris /bin/sh, choked on this by
      persisting IFS after the read invocation. That is not a
      shell we usually care about, and I think this use of IFS is
      acceptable by POSIX (which allows other behavior near
      "special builtins", but "read" is not one of those). But it
      seems that this may be a subtle, not-well-tested case for
      some shells. Given that the workaround is so simple, it's
      worth just being defensive.
      Signed-off-by: NMichael J Gruber <git@drmicha.warpmail.net>
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      78ed1d2d
    • T
      t5512 (ls-remote): modernize style · fe6c64ab
      Tom Grennan 提交于
      Prepare expected output inside test_expect_success that uses it.
      Also remove excess blank lines.
      Signed-off-by: NTom Grennan <tmgrennan@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      fe6c64ab