diff options
author | 2009-12-30 22:06:16 +0530 | |
---|---|---|
committer | 2009-12-30 22:15:58 +0530 | |
commit | ab3c861241b774b73e5e3b6d7abaf642f0231939 (patch) | |
tree | 9eec6025baf7ff7326f3d9af2f5d7b9ff1ddaa7c | |
parent | auth: regex goof on my part (diff) | |
download | gitolite-gentoo-ab3c861241b774b73e5e3b6d7abaf642f0231939.tar.gz gitolite-gentoo-ab3c861241b774b73e5e3b6d7abaf642f0231939.tar.bz2 gitolite-gentoo-ab3c861241b774b73e5e3b6d7abaf642f0231939.zip |
Revert "easy install: needs a minor fix to accommodate auto-vivification"
This reverts commit 6576e82e3342a869e18845df432ef4128e693131.
On oddball configs, where the shell key is reused as the gitolite key by
smart( people|-alecks), the ls-remote stops the program dead, preventing
the "git add" and "git commit" that seed the admin repo.
This makes extra work in terms of fixing it after the fact; removing it
makes the install go further, and all you need to do is (1) delete the
first line from ~/.ssh/authorized_keys on the server and (2) back on the
client do a "git clone gitolite:gitolite-admin".
OK so it needs to be removed. Explaining that was the easy part! The
hard part is explaining why removing it is harmless.
Look at the commit tree around that commit, and see that the commit
before that (b78a720) was partially reverted in e7e6085. b78a720
removed the new_repo call from compile, forcing it to happen only on
auth, which forced this workaround for seeding the admin repo.
Since e7e6085 reverted that part of b78a720, giving back new_repo
functions to compile, this line of code wasn't doing any good. QED and
all that :)
-rwxr-xr-x | src/gl-easy-install | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/gl-easy-install b/src/gl-easy-install index 819eb20..6077e23 100755 --- a/src/gl-easy-install +++ b/src/gl-easy-install @@ -401,7 +401,6 @@ setup_pta() { # Substitute $GL_ADMINDIR and $REPO_BASE appropriately. Note there is no # space around the "=" in the second and third lines. - git ls-remote gitolite:gitolite-admin echo "cd $REPO_BASE/gitolite-admin.git GIT_WORK_TREE=$GL_ADMINDIR git add conf/gitolite.conf keydir GIT_WORK_TREE=$GL_ADMINDIR git diff --cached --quiet || GIT_WORK_TREE=$GL_ADMINDIR git commit -am start |