Permalink
Browse files

Drop dashes for post-receive-commitnumbers and post-receive-gitconfig.

  • Loading branch information...
stephenh committed Nov 12, 2008
1 parent 749d928 commit 1e0cb5ffa68fc6c80ae178141b77c8df739487ce
View
@@ -20,7 +20,7 @@ Server-side Hooks
See the individual scripts for documentation, but an overview:
-* [post-receive-assign-commitnumbers][1]: makes Subversion-like monotonically increasing commit numbers for every commit
+* [post-receive-commitnumbers][1]: makes Subversion-like monotonically increasing commit numbers for every commit
* [post-receive-email][2]: contrib email script with customizations for stuff like combined diffs
* [post-receive-gitconfig][3]: auto-updates the git config+hooks on the server when updated in the repo
* [post-receive-hudson][4]: auto-creates new jobs in Hudson when branches in git are created
@@ -31,7 +31,7 @@ See the individual scripts for documentation, but an overview:
* [update-lock-check][9]: enforces locked/preserved branches
* [update-stable][10]: enforces proper movement of stable
-[1]: master/server/post-receive-assign-commitnumbers
+[1]: master/server/post-receive-commitnumbers
[2]: master/server/post-receive-email
[3]: master/server/post-receive-gitconfig
[4]: master/server/post-receive-hudson
File renamed without changes.
@@ -11,19 +11,19 @@ test_expect_success 'setup' '
git clone ./. server &&
rm -fr server/.git/hooks &&
git remote add origin ./server &&
- git config --add branch.master.remote origin &&
- git config --add branch.master.merge refs/heads/master &&
+ git config branch.master.remote origin &&
+ git config branch.master.merge refs/heads/master &&
git fetch
'
-install_post_receive_hook 'post-receive-git-config'
+install_post_receive_hook 'post-receive-gitconfig'
test_expect_success 'pushing initial value works' '
cd server &&
! git config --list | grep foo &&
cd .. &&
- ../../scripts/make-gitconfig-branch &&
+ ../../scripts/create-gitconfig &&
git checkout gitconfig &&
echo "foo.foo=bar" > config &&
git commit -a -m "Set foo.foo=bar."
@@ -13,17 +13,17 @@ test_expect_success 'setup' '
git remote add origin ./server
'
-install_post_receive_hook 'post-receive-git-config'
+install_post_receive_hook 'post-receive-gitconfig'
test_expect_success 'adding hook' '
ls server/.git/hooks | grep post-receive &&
- ../../scripts/make-gitconfig-branch &&
+ ../../scripts/create-gitconfig &&
git checkout gitconfig &&
mkdir hooks &&
cd hooks &&
echo "#!/bin/sh" > post-receive &&
- echo "../../../../server/post-receive-git-config" >> post-receive &&
+ echo "../../../../server/post-receive-gitconfig" >> post-receive &&
echo "echo barbar" >> post-receive &&
echo "#!/bin/sh" > update &&
echo "echo foofoo" >> update &&
@@ -16,7 +16,7 @@ test_expect_success 'setup' '
git remote add origin ./server
'
-install_post_receive_hook 'post-receive-assign-commit-numbers' 'post-receive-trac'
+install_post_receive_hook 'post-receive-commitnumbers' 'post-receive-trac'
test_expect_success 'new branch' '
git checkout -b topic1 master &&
@@ -11,12 +11,12 @@ test_expect_success 'setup' '
git clone ./. server &&
rm -fr server/.git/hooks &&
git remote add origin ./server &&
- git config --add branch.master.remote origin &&
- git config --add branch.master.merge refs/heads/master &&
+ git config branch.master.remote origin &&
+ git config branch.master.merge refs/heads/master &&
git fetch
'
-install_post_receive_hook 'post-receive-assign-commit-numbers'
+install_post_receive_hook 'post-receive-commitnumbers'
test_expect_success 'assign one new commit' '
git checkout master &&

0 comments on commit 1e0cb5f

Please sign in to comment.