]> git.droids-corp.org - git-central.git/commitdiff
Drop the sh extension.
authorStephen Haberman <stephen@exigencecorp.com>
Tue, 19 Aug 2008 20:44:37 +0000 (15:44 -0500)
committerStephen Haberman <stephen@exigencecorp.com>
Tue, 19 Aug 2008 20:44:37 +0000 (15:44 -0500)
scripts/make-gitconfig-branch [new file with mode: 0644]
scripts/make-gitconfig-branch.sh [deleted file]
tests/t2800-server-post-receive-git-config.sh

diff --git a/scripts/make-gitconfig-branch b/scripts/make-gitconfig-branch
new file mode 100644 (file)
index 0000000..5556038
--- /dev/null
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+# Create an empty file object
+empty_file_hash=$(git hash-object -w --stdin <<FOO
+FOO)
+
+# Make a root directory tree with the config file in it
+config_tree_hash=$(git mktree <<FOO
+100644 blob $empty_file_hash   config
+FOO)
+
+# Commit the root directory tree
+commit_hash=$(git commit-tree $config_tree_hash <<FOO
+Initial commit on config branch.
+FOO)
+
+# Push the commit out to the gitconfig branch
+git update-ref refs/heads/gitconfig "$commit_hash" 0000000000000000000000000000000000000000
+
diff --git a/scripts/make-gitconfig-branch.sh b/scripts/make-gitconfig-branch.sh
deleted file mode 100644 (file)
index 5556038..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/sh
-
-# Create an empty file object
-empty_file_hash=$(git hash-object -w --stdin <<FOO
-FOO)
-
-# Make a root directory tree with the config file in it
-config_tree_hash=$(git mktree <<FOO
-100644 blob $empty_file_hash   config
-FOO)
-
-# Commit the root directory tree
-commit_hash=$(git commit-tree $config_tree_hash <<FOO
-Initial commit on config branch.
-FOO)
-
-# Push the commit out to the gitconfig branch
-git update-ref refs/heads/gitconfig "$commit_hash" 0000000000000000000000000000000000000000
-
index 2adbd6efab20807a370e2a83419a04a512877b17..63d1f98df3562f3a325df414e4f562838a6d9db1 100644 (file)
@@ -23,7 +23,7 @@ test_expect_success 'pushing initial value works' '
        ! git config --list | grep foo &&
        cd .. &&
 
-       ../../scripts/make-gitconfig-branch.sh &&
+       ../../scripts/make-gitconfig-branch &&
        git checkout gitconfig &&
        echo "foo.foo=bar" > config &&
        git commit -a -m "Set foo.foo=bar."