This project is mirrored from Pull mirroring updated .
  1. 03 Sep, 2012 1 commit
  2. 11 Aug, 2011 1 commit
  3. 09 Nov, 2010 1 commit
  4. 18 Aug, 2010 1 commit
  5. 25 Jun, 2010 1 commit
  6. 09 Feb, 2010 1 commit
  7. 06 Feb, 2010 1 commit
    • Jeff King's avatar
      Fix invalid read in quote_c_style_counted · 84249819
      Jeff King authored
      This function did not work on strings that were not NUL-terminated. It
      reads through a length-bounded string, searching for characters in need of
      quoting. After we find one, we output the quoted character, then advance
      our pointer to find the next one. However, we never decremented the
      length, meaning we ended up looking at whatever random junk was stored
      after the string.
      This bug was not found by the existing tests because most code paths feed
      a NUL-terminated string. The notable exception is a directory name being
      fed by ls-tree.
      Signed-off-by: default avatarJeff King <[email protected]>
      Signed-off-by: default avatarJunio C Hamano <[email protected]>
  8. 26 Aug, 2008 1 commit
    • Ramsay Jones's avatar
      Suppress some bash redirection error messages · 2b843732
      Ramsay Jones authored
      In particular, when testing if the filesystem allows tabs in
      filenames, bash issues an error something like:
      ./ pathname	with HT: No such file or directory
      which is caused by the failure of the (stdout) redirection,
      since the file cannot be created. In order to suppress the
      error message, you must redirect stderr to /dev/null, *before*
      the stdout redirection on the command-line.
      Also, remove a redundant filesystem check from the begining of
      the test and standardise the "test skipped"
      message to 'say' on exit.
      Signed-off-by: default avatarRamsay Jones <[email protected]>
      Signed-off-by: default avatarJunio C Hamano <[email protected]>
  9. 13 Mar, 2008 1 commit
    • Jeff King's avatar
      add test_cmp function for test scripts · 82ebb0b6
      Jeff King authored
      Many scripts compare actual and expected output using
      "diff -u". This is nicer than "cmp" because the output shows
      how the two differ. However, not all versions of diff
      understand -u, leading to unnecessary test failure.
      This adds a test_cmp function to the test scripts and
      switches all "diff -u" invocations to use it. The function
      uses the contents of "$GIT_TEST_CMP" to compare its
      arguments; the default is "diff -u".
      On systems with a less-capable diff, you can do:
        GIT_TEST_CMP=cmp make test
      Signed-off-by: default avatarJeff King <[email protected]>
      Signed-off-by: default avatarJunio C Hamano <[email protected]>
  10. 14 Nov, 2007 1 commit
  11. 13 Aug, 2007 1 commit
  12. 24 Jun, 2007 1 commit
    • Junio C Hamano's avatar
      Add core.quotepath configuration variable. · 9378c161
      Junio C Hamano authored
      We always quote "unusual" byte values in a pathname using
      C-string style, to make it safer for parsing scripts that do not
      handle NUL separated records well (or just too lazy to bother).
      The absolute minimum bytes that need to be quoted for this
      purpose are TAB, LF (and other control characters), double quote
      and backslash.
      However, we have also always quoted the bytes in high 8-bit
      range; this was partly because we were lazy and partly because
      we were being cautious.
      This introduces an internal "quote_path_fully" variable, and
      core.quotepath configuration variable to control it.  When set
      to false, it does not quote bytes in high 8-bit range anymore
      but passes them intact.
      The variable defaults to "true" to retain the traditional
      behaviour for now.
      Signed-off-by: default avatarJunio C Hamano <[email protected]>