1. 23 3月, 2009 6 次提交
  2. 22 3月, 2009 16 次提交
  3. 21 3月, 2009 12 次提交
  4. 20 3月, 2009 6 次提交
    • J
      Merge branch 'js/windows-tests' · 6066f5ae
      Junio C Hamano 提交于
      * js/windows-tests:
        t5602: Work around path mangling on MSYS
        t5300, t5302, t5303: Do not use /dev/zero
        t2200, t7004: Avoid glob pattern that also matches files
        t7300: fix clean up on Windows
        test-lib: Introduce test_chmod and use it instead of update-index --chmod
        test-lib: Simplify test counting.
        test-lib: Replace uses of $(expr ...) by POSIX shell features.
        Call 'say' outside test_expect_success
        test suite: Use 'say' to say something instead of 'test_expect_success'
        t9400, t9401: Do not force hard-linked clone
      6066f5ae
    • J
      t5602: Work around path mangling on MSYS · a8cbc9ab
      Johannes Sixt 提交于
      MSYS's bash rewrites /something/bin/... into a Windows path that looks like
      c:/msysgit/something/bin/... before git sees it. But later the test case
      verifies that the path was used and compares it to the unmangled version.
      This fails, of course. This make the path relative so that the path
      mangling is not triggered.
      Signed-off-by: NJohannes Sixt <j6t@kdbg.org>
      a8cbc9ab
    • J
      t5300, t5302, t5303: Do not use /dev/zero · b689ccf6
      Johannes Sixt 提交于
      We do not have /dev/zero on Windows. This replaces it by data generated
      with printf, perl, or echo. Most of the cases do not depend on that the
      data is a stream of zero bytes, so we use something printable; nor is an
      unlimited stream of data needed, so we produce only as many bytes as the
      test cases need.
      Signed-off-by: NJohannes Sixt <j6t@kdbg.org>
      b689ccf6
    • J
      t2200, t7004: Avoid glob pattern that also matches files · 0aaaef7b
      Johannes Sixt 提交于
      On Windows, there is an unfortunate interaction between the MSYS bash and
      git's command line processing:
      
      - Since Windows's CMD does not do the wildcard expansion, but passes
        arguments like path* through to the programs, the programs must do the
        expansion themselves. This happens in the startup code before main() is
        entered.
      
      - bash, however, passes the argument "path*" to git, assuming that git will
        see the unquoted word unchanged as a single argument.
      
      But actually git expands the unquoted word before main() is entered.
      
      In t2200, not all names that the test case is interested in exist as files
      at the time when 'git ls-files' is invoked. git expands "path?" to only
      the subset of files the exist, and only that subset was listed, so that the
      test failed.  We now list all interesting paths explicitly.
      
      In t7004, git exanded the pattern "*a*" to "actual" (the file that stdout
      was redirected to), which is not what the was tested for. We fix it by
      renaming the output file (and removing any existing files matching *a*).
      This was originally fixed by Johannes Schindelin.
      Signed-off-by: NJohannes Sixt <j6t@kdbg.org>
      0aaaef7b
    • J
      t7300: fix clean up on Windows · e2c24076
      Johannes Schindelin 提交于
      On Windows, you cannot remove files that are in use, not even with
      'rm -rf'.  So we need to run 'exec <foo/bar' inside a subshell lest
      removing the whole test repository fail.
      Signed-off-by: NJohannes Schindelin <johannes.schindelin@gmx.de>
      Signed-off-by: NJohannes Sixt <j6t@kdbg.org>
      e2c24076
    • J
      test-lib: Introduce test_chmod and use it instead of update-index --chmod · 1f553918
      Johannes Sixt 提交于
      This function replaces sequences of 'chmod +x' and 'git update-index
      --chmod=+x' in the test suite, whose purpose is to help filesystems
      that need core.filemode=false. Two places where only 'chmod +x' was used
      we also use this new function.
      
      The function calls 'git update-index --chmod' without checking
      core.filemode (unlike some of the call sites did). We do this because the
      call sites *expect* that the executable bit ends up in the index (ie. it
      is not the purpose of the call sites to *test* whether git treats
      'chmod +x' and 'update-index --chmod=+x' correctly). Therefore, on
      filesystems with core.filemode=true the 'git update-index --chmod' is a
      no-op.
      
      The function uses --add with update-index to help one call site in
      t6031-merge-recursive. It makes no difference for the other callers.
      Signed-off-by: NJohannes Sixt <j6t@kdbg.org>
      1f553918