]> git.madduck.net Git - code/vcsh.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Fix seed-gitignore, which was broken by the refactoring
authorRichard Hartmann <richih.mailinglist@gmail.com>
Tue, 22 Nov 2011 15:48:23 +0000 (16:48 +0100)
committerRichard Hartmann <richih.mailinglist@gmail.com>
Tue, 22 Nov 2011 15:48:23 +0000 (16:48 +0100)
vcsh

diff --git a/vcsh b/vcsh
index 93b5d949ca8eb9c3790c301637f1eff6faf882f1..0edfe2fc1ec818e9c3048c3e59344999f380b038 100755 (executable)
--- a/vcsh
+++ b/vcsh
@@ -84,8 +84,7 @@ if [ "$1" = 'clone' ]; then
        export GIT_DIR="$VCSH_BASE/$VCSH_REPO_NAME.git"
 elif [ "$1" = 'delete' ] ||
      [ "$1" = 'init' ] ||
        export GIT_DIR="$VCSH_BASE/$VCSH_REPO_NAME.git"
 elif [ "$1" = 'delete' ] ||
      [ "$1" = 'init' ] ||
-     [ "$1" = 'run' ] ||
-     [ "$1" = 'seed-gitignore' ]; then
+     [ "$1" = 'run' ]; then
        [ -z $2 ] && echo "$SELF $1: error: please specify repository to work on" && return 1
        [ -z $3 ] && echo "$SELF $1 $2: error: please specify a command" && return 1
        export VCSH_COMMAND="$1"
        [ -z $2 ] && echo "$SELF $1: error: please specify repository to work on" && return 1
        [ -z $3 ] && echo "$SELF $1 $2: error: please specify a command" && return 1
        export VCSH_COMMAND="$1"
@@ -93,6 +92,10 @@ elif [ "$1" = 'delete' ] ||
        export GIT_DIR="$VCSH_BASE/$VCSH_REPO_NAME.git"
        shift 2
        export VCSH_EXTERNAL_COMMAND="$*"
        export GIT_DIR="$VCSH_BASE/$VCSH_REPO_NAME.git"
        shift 2
        export VCSH_EXTERNAL_COMMAND="$*"
+elif [ "$1" = 'seed-gitignore' ]; then
+       export VCSH_COMMAND="$1"
+       export VCSH_REPO_NAME="$2"
+       export GIT_DIR="$VCSH_BASE/$VCSH_REPO_NAME.git"
 elif [ "$1" = 'help' ] ||
      [ "$1" = 'list' ]; then
        export VCSH_COMMAND="$1"
 elif [ "$1" = 'help' ] ||
      [ "$1" = 'list' ]; then
        export VCSH_COMMAND="$1"