1. 10 8月, 2009 2 次提交
    • J
      merge: fix incorrect merge message for ambiguous tag/branch · 751c5974
      Jeff King 提交于
      If we have both a tag and a branch named "foo", then calling
      "git merge foo" will warn about the ambiguous ref, but merge
      the tag.
      
      When generating the commit message, though, we simply
      checked whether "refs/heads/foo" existed, and if it did,
      assumed it was a branch. This led to the statement "Merge
      branch 'foo'" in the commit message, which is quite wrong.
      
      Instead, we should use dwim_ref to find the actual ref used,
      and describe it appropriately.
      
      In addition to the test in t7608, we must also tweak the
      expected output of t4202, which was accidentally triggering
      this bug.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      751c5974
    • J
      add tests for merge message headings · ce064618
      Jeff King 提交于
      When calling "git merge $X", we automatically generate a
      commit message containing something like "Merge branch
      '$X'". This test script checks that those messages say what
      they should, and exposes a failure when merging a refname
      that is ambiguous between a tag and a branch.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      ce064618
  2. 08 8月, 2009 6 次提交
  3. 06 8月, 2009 4 次提交
  4. 05 8月, 2009 2 次提交
  5. 31 7月, 2009 1 次提交
  6. 29 7月, 2009 7 次提交
  7. 27 7月, 2009 4 次提交
  8. 26 7月, 2009 5 次提交
  9. 25 7月, 2009 9 次提交
    • E
      git svn: avoid escaping '/' when renaming/copying files · 884cce5b
      Eric Wong 提交于
      Timothy Schaeffer reported the following:
      > Git-svn has been giving me the following error for some time
      > when calling "git svn dcommit":
      >
      > RA layer request failed: PROPFIND request failed on
      > '/svn/stf/branches/dev/sw%2Fdpemu%2Finclude%2FNetCnxn.h': PROPFIND of
      > '/svn/stf/branches/dev/sw%2Fdpemu%2Finclude%2FNetCnxn.h': 302 Found
      > (https://oursvnrepo.net) at /usr/local/libexec/git-core/git-svn line 508
      >
      > This only occurred when git detected a rename or copy.
      >
      > Following the lead into git-svn.perl,
      > and noticing that some of the '/'s in the path were hex-encoded
      > and some were not,
      > I changed the regex used to find chars
      > to hex-encode in the relative part of the path
      > to exclude '/'.
      > It works, so far.
      > I have included a patch.
      
      While this has previous not been a problem in my experience,
      newer versions of SVN may be stricter and this does not
      introduce regressions in t9115.
      Signed-off-by: NEric Wong <normalperson@yhbt.net>
      884cce5b
    • E
      t9142: stop httpd after the test · 5af9b77b
      Eric Wong 提交于
      Otherwise it would fail in subsequent runs if the same
      SVN_HTTPD_PORT was used.
      Signed-off-by: NEric Wong <normalperson@yhbt.net>
      5af9b77b
    • E
      git svn: the branch command no longer needs the full path · eaa14ff8
      Eric Wong 提交于
      This was introduced in 0b2af457
      ("Fix branch detection when repository root is inaccessible")
      but reintroduced in the previous commit.
      Signed-off-by: NEric Wong <normalperson@yhbt.net>
      eaa14ff8
    • E
      git svn: revert default behavior for --minimize-url · 6b48829d
      Eric Wong 提交于
      This reverts the --minimize-url behavior change that
      appeared recently in commit 0b2af457
      ("Fix branch detection when repository root is inaccessible").
      
      However, we now allow the option to be turned off by allowing
      "--no-minimize-url" so people with limited-access setups can
      still take advantage of the fix in
      0b2af457.
      
      Also document the behavior and default settings of minimize-url
      in the manpage for the first time.
      
      This introduces a temporary UI regression to allow t9141 to pass
      that will be reverted (fixed) in the next commit.
      Signed-off-by: NEric Wong <normalperson@yhbt.net>
      6b48829d
    • R
      git svn: add gc command · 2da9ee08
      Robert Allan Zeh 提交于
      Add a git svn gc command that gzips all unhandled.log files, and
      removes all index files under .git/svn.
      Signed-off-by: NRobert Allan Zeh <robert.a.zeh@gmail.com>
      Signed-off-by: NEric Wong <normalperson@yhbt.net>
      2da9ee08
    • J
      Merge branch 'maint' · 6517452d
      Junio C Hamano 提交于
      * maint:
        t8005: Nobody writes Russian in shift_jis
      
      Conflicts:
      	t/t8005-blame-i18n.sh
      6517452d
    • J
      t8005: Nobody writes Russian in shift_jis · 54bc13ce
      Junio C Hamano 提交于
      The second and third tests of this script expected that Russian strings
      are converted between ISO-8859-5 and Shift_JIS in the "blame --porcelain"
      format output correctly.
      
      Sure, many platforms may convert between such a combination, but that is
      only because one of the base character set of Shift_JIS, JIS X 0208,
      defines codepoints for Russian characters (among others); I do not think
      anybody uses Shift_JIS when seriously writing Russian, and it is perfectly
      understandable if iconv() libraries on some platforms fail converting
      between this combination, as it does not matter in reality.
      
      This patch changes the test to verify Japanese strings are converted
      correctly between EUC-JP and Shift_JIS in the same procedure.  The point
      of the test is not about verifying the platform's iconv() library, but to
      see if "git blame" makes correct iconv() library calls when it should.
      
      We could instead use ISO-8859-5 and KOI8-R as the combination, because
      they are both meant to represent Russian, in order to make this test
      meaningful on more platforms, but we already use Shift_JIS vs EUC-JP
      combinations to test other programs in our test suite, so this combination
      is safer from the point of view of the portability.  Besides, I do not
      read nor write Russian; sorry ;-)
      
      This change allows tests to pass on my (friend's) Solaris 5.11 box.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      54bc13ce
    • J
      Merge branch 'maint' · 8f5e3ca7
      Junio C Hamano 提交于
      * maint:
        Fix severe breakage in "git-apply --whitespace=fix"
      8f5e3ca7
    • J
      Fix severe breakage in "git-apply --whitespace=fix" · 422a82f2
      Junio C Hamano 提交于
      735c6744 (Trailing whitespace and no newline fix, 2009-07-22) completely
      broke --whitespace=fix, causing it to lose all the empty lines in a patch.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      422a82f2