Merge branch 'nd/init-gitdir'
authorJunio C Hamano <gitster@pobox.com>
Tue, 12 Apr 2011 07:04:53 +0000 (00:04 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 12 Apr 2011 07:04:53 +0000 (00:04 -0700)
* nd/init-gitdir:
t0001: guard a new test with SYMLINKS prerequisite

1  2 
t/t0001-init.sh
diff --combined t/t0001-init.sh
index a5816d0e4f3744f8ba30666d8bb5828abf6cda51,21caba7698258a7c4b16c3271c158c75181efb88..54520f6fa69bef682e200497c531c9cd7367b9ea
@@@ -47,7 -47,7 +47,7 @@@ test_expect_success 'plain nested in ba
  
  test_expect_success 'plain through aliased command, outside any git repo' '
        (
 -              sane_unset GIT_DIR GIT_WORK_TREE GIT_CONFIG_NOGLOBAL &&
 +              sane_unset GIT_DIR GIT_WORK_TREE &&
                HOME=$(pwd)/alias-config &&
                export HOME &&
                mkdir alias-config &&
@@@ -180,7 -180,7 +180,7 @@@ test_expect_success 'GIT_DIR & GIT_WORK
        fi
  '
  
 -test_expect_success 'reinit' '
 +test_expect_success C_LOCALE_OUTPUT 'reinit' '
  
        (
                sane_unset GIT_CONFIG GIT_WORK_TREE GIT_CONFIG &&
@@@ -231,6 -231,7 +231,6 @@@ test_expect_success 'init with init.tem
                git config -f "$test_config"  init.templatedir "${HOME}/templatedir-source" &&
                mkdir templatedir-set &&
                cd templatedir-set &&
 -              sane_unset GIT_CONFIG_NOGLOBAL &&
                sane_unset GIT_TEMPLATE_DIR &&
                NO_SET_GIT_TEMPLATE_DIR=t &&
                export NO_SET_GIT_TEMPLATE_DIR &&
  test_expect_success 'init --bare/--shared overrides system/global config' '
        (
                test_config="$HOME"/.gitconfig &&
 -              sane_unset GIT_CONFIG_NOGLOBAL &&
                git config -f "$test_config" core.bare false &&
                git config -f "$test_config" core.sharedRepository 0640 &&
                mkdir init-bare-shared-override &&
  test_expect_success 'init honors global core.sharedRepository' '
        (
                test_config="$HOME"/.gitconfig &&
 -              sane_unset GIT_CONFIG_NOGLOBAL &&
                git config -f "$test_config" core.sharedRepository 0666 &&
                mkdir shared-honor-global &&
                cd shared-honor-global &&
@@@ -402,7 -405,7 +402,7 @@@ test_expect_success 're-init to move gi
        test -d realgitdir/refs
  '
  
- test_expect_success 're-init to move gitdir symlink' '
+ test_expect_success SYMLINKS 're-init to move gitdir symlink' '
        rm -rf newdir realgitdir &&
        git init newdir &&
        (