1. 01 8月, 2011 2 次提交
    • J
      t7400: fix bogus test failure with symlinked trash · dd008b3b
      Jeff King 提交于
      One of the tests in t7400 fails if the trash directory has a
      symlink anywhere in its path. E.g.:
      
        $ mkdir /tmp/git-test
        $ mkdir /tmp/git-test/real
        $ ln -s real /tmp/git-test/link
      
        $ ./t7400-submodule-basic --root=/tmp/git-test/real
        ...
        # passed all 44 test(s)
      
        $ ./t7400-submodule-basic --root=/tmp/git-test/link
        ...
        not ok - 41 use superproject as upstream when path is relative and no url is set there
      
      The failing test does:
      
        git submodule add ../repo relative &&
        ...
        git submodule sync relative &&
        test "$(git config submodule.relative.url)" = "$submodurl/repo"
      
      where $submodurl comes from the $TRASH_DIRECTORY the user
      gave us. However, git will resolve symlinks when converting
      the relative path into an absolute one, leading them to be
      textually different (even though they point to the same
      directory).
      
      Fix this by asking pwd to canonicalize the name of the trash
      directory for us.
      Signed-off-by: NJeff King <peff@peff.net>
      Acked-by: NJens Lehmann <Jens.Lehmann@web.de>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      dd008b3b
    • C
      Documentation: clarify the invalidated tree entry format · e44b6df9
      Carlos Martín Nieto 提交于
      When the entry_count is -1, the tree is invalidated and therefore has
      not associated hash (or object name). Explicitly state that the next
      entry starts after the newline.
      Signed-off-by: NCarlos Martín Nieto <cmn@elego.de>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      e44b6df9
  2. 25 7月, 2011 1 次提交
    • J
      tests: print failed test numbers at the end of the test run · 2579e1d2
      Jens Lehmann 提交于
      On modern multi-core processors "make test" is often run in multiple jobs.
      If one of them fails the test run does stop, but the concurrently running
      tests finish their run. It is rather easy to find out which test failed by
      doing a "ls -d t/trash*". But that only works when you don't use the "-i"
      option to "make test" because you want to get an overview of all failing
      tests. In that case all thrash directories are deleted end and the
      information which tests failed is lost.
      
      If one or more tests failed, print a list of them before the test summary:
      
      failed test(s): t1000 t6500
      
      fixed   0
      success 7638
      failed  3
      broken  49
      total   7723
      
      This makes it possible to just run the test suite with -i and collect all
      failed test scripts at the end for further examination.
      Signed-off-by: NJens Lehmann <Jens.Lehmann@web.de>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      2579e1d2
  3. 23 7月, 2011 2 次提交
    • D
      doc/fast-import: clarify notemodify command · b421812b
      Dmitry Ivankov 提交于
      The "notemodify" fast-import command was introduced in commit a8dd2e7d
      (fast-import: Add support for importing commit notes, 2009-10-09)
      The commit log has slightly different description than the added
      documentation. The latter is somewhat confusing. "notemodify" is a
      subcommand of "commit" command used to add a note for some commit.
      Does this note annotate the commit produced by the "commit" command
      or a commit given by it's committish parameter? Which notes tree
      does it write notes to?
      
      The exact meaning could be deduced with old description and some
      notes machinery knowledge. But let's make it more obvious. This
      command is used in a context like "commit refs/notes/test" to
      add or rewrite an annotation for a committish parameter. So the
      advised way to add notes in a fast-import stream is:
      1) import some commits (optional)
      2) prepare a "commit" to the notes tree:
      2.1) choose notes ref, committer, log message, etc.
      2.2) create annotations with "notemodify", where each can refer to
      a commit being annotated via a branch name, import mark reference,
      sha1 and other expressions specified in the Documentation.
      Signed-off-by: NDmitry Ivankov <divanorama@gmail.com>
      Acked-by: NJonathan Nieder <jrnieder@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      b421812b
    • J
      df6b0cad
  4. 22 7月, 2011 1 次提交
  5. 21 7月, 2011 1 次提交
  6. 20 7月, 2011 1 次提交
  7. 07 7月, 2011 1 次提交
  8. 30 6月, 2011 4 次提交
    • J
      Merge git://bogomips.org/git-svn into maint · 76c82f90
      Junio C Hamano 提交于
      * git://bogomips.org/git-svn:
        git-svn: Correctly handle root commits in mergeinfo ranges
        git-svn: Disambiguate rev-list arguments to improve error message
        git-svn: Demonstrate a bug with root commits in mergeinfo ranges
      76c82f90
    • J
      Merge branch 'maint-1.7.5' into maint · f5cfd52f
      Junio C Hamano 提交于
      * maint-1.7.5:
        test: skip clean-up when running under --immediate mode
        "branch -d" can remove more than one branches
      f5cfd52f
    • J
      test: skip clean-up when running under --immediate mode · b586744a
      Junio C Hamano 提交于
      Some tests try to be too careful about cleaning themselves up and
      do
      
          test_expect_success description '
              set-up some test refs and/or configuration &&
              test_when_finished "revert the above changes" &&
      	the real test
          '
      
      Which is nice to make sure that a potential failure would not have
      unexpected interaction with the next test. This however interferes when
      "the real test" fails and we want to see what is going on, by running the
      test with --immediate mode and descending into its trash directory after
      the test stops. The precondition to run the real test and cause it to fail
      is all gone after the clean-up procedure defined by test_when_finished is
      done.
      
      Update test_run_ which is the workhorse of running a test script
      called from test_expect_success and test_expect_failure, so that we do not
      run clean-up script defined with test_when_finished when a test that is
      expected to succeed fails under the --immediate mode.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      Acked-by: NJeff King <peff@peff.net>
      b586744a
    • J
      "branch -d" can remove more than one branches · 534cea3f
      Junio C Hamano 提交于
      Since 03feddd6 (git-check-ref-format: reject funny ref names, 2005-10-13),
      "git branch -d" can take more than one branch names to remove.
      
      The documentation was correct, but the usage string was not.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      534cea3f
  9. 28 6月, 2011 3 次提交
  10. 27 6月, 2011 2 次提交
  11. 25 6月, 2011 2 次提交
  12. 23 6月, 2011 3 次提交
  13. 22 6月, 2011 2 次提交
  14. 21 6月, 2011 3 次提交
  15. 20 6月, 2011 3 次提交
  16. 18 6月, 2011 4 次提交
    • J
      tests: link shell libraries into valgrind directory · 36bfb0e5
      Jeff King 提交于
      When we run tests under valgrind, we symlink anything
      executable that starts with git-* or test-* into a special
      valgrind bin directory, and then make that our
      GIT_EXEC_PATH.
      
      However, shell libraries like git-sh-setup do not have the
      executable bit marked, and did not get symlinked.  This
      means that any test looking for shell libraries in our
      exec-path would fail to find them, even though that is a
      fine thing to do when testing against a regular git build
      (or in a git install, for that matter).
      
      t2300 demonstrated this problem. The fix is to symlink these
      shell libraries directly into the valgrind directory.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      36bfb0e5
    • J
      t/Makefile: pass test opts to valgrind target properly · 7ef4d6b9
      Jeff King 提交于
      The valgrind target just reinvokes make with GIT_TEST_OPTS
      set to "--valgrind". However, it does this using an
      environment variable, which means GIT_TEST_OPTS in your
      config.mak would override it, and "make valgrind" would
      simply run the test suite without valgrind on.
      
      Instead, we should pass GIT_TEST_OPTS on the command-line,
      overriding what's in config.mak, and take care to append to
      whatever the user has there already.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      7ef4d6b9
    • J
      Merge branch 'ab/i18n-scripts-basic' · 179aae51
      Junio C Hamano 提交于
      * ab/i18n-scripts-basic:
        sh-i18n--envsubst.c: do not #include getopt.h
      179aae51
    • B
      sh-i18n--envsubst.c: do not #include getopt.h · 7c1fdd70
      Brandon Casey 提交于
      The getopt.h header file is not used.  It's inclusion is left over from the
      original version of this source.  Additionally, getopt.h does not exist on
      all platforms (SunOS 5.7) and will cause a compilation failure.  So, let's
      remove it.
      Signed-off-by: NBrandon Casey <casey@nrlssc.navy.mil>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      7c1fdd70
  17. 17 6月, 2011 2 次提交
  18. 10 6月, 2011 1 次提交
    • J
      gitweb: do not misparse nonnumeric content tag files that contain a digit · 2c162b56
      Jonathan Nieder 提交于
      v1.7.6-rc0~27^2~4 (gitweb: Change the way "content tags" ('ctags') are
      handled, 2011-04-29) tried to make gitweb's tag cloud feature more
      intuitive for webmasters by checking whether the ctags/<label> under
      a project's .git dir contains a number (representing the strength of
      association to <label>) before treating it as one.
      
      With that change, after putting '$feature{'ctags'}{'default'} = [1];'
      in your $GITWEB_CONFIG, you could do
      
      	echo Linux >.git/ctags/linux
      
      and gitweb would treat that as a request to tag the current repository
      with the Linux tag, instead of the previous behavior of writing an
      error page embedded in the projects list that triggers error messages
      from Chromium and Firefox about malformed XML.
      
      Unfortunately the pattern (\d+) used to match numbers is too loose,
      and the "XML declaration allowed only at the start of the document"
      error can still be experienced if you write "Linux-2.6" in place of
      "Linux" in the example above.  Fix it by tightening the pattern to
      ^\d+$.
      Signed-off-by: NJonathan Nieder <jrnieder@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      2c162b56
  19. 09 6月, 2011 2 次提交