summaryrefslogtreecommitdiff
path: root/git-sh-setup-script
Commit message (Collapse)AuthorAgeFilesLines
* [PATCH] Make git-sh-setup-script do what it was supposed to doLinus Torvalds2005-08-061-1/+1
| | | | | | | | | | | Duh. A missing && meant that half the tests that git-sh-setup-script were _meant_ to do were actually totally ignored. In particular, the git sanity checking ended up only testing that the GIT_OBJECT_DIRECTORY was sane, not that GIT_DIR itself was.. Signed-off-by: Linus Torvalds <torvalds@osdl.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
* Add "git-push-script" to make a more regular interfaceLinus Torvalds2005-07-081-0/+0
| | | | | | It only does local and ssh pushes, because it's really just a wrapper for git-send-pack. We might make it do an rsync mirror or something, of course.
* Add "git-sh-setup-script" for common git shell script setupLinus Torvalds2005-07-081-0/+17
It sets up the normal git environment variables and a few helper functions (currently just "die()"), and returns ok if it all looks like a git archive. So use it something like . git-sh-setup-script || die "Not a git archive" to make the rest of the git scripts more careful and readable.