Skip to main content
Sign in
Snippets Groups Projects
Commit 36a7cedf authored by Richard Hartmann's avatar Richard Hartmann
Browse files

Merge branch 'master' of github.com:RichiH/vcsh

parents 8ae70a31 8b153927
Branches
No related tags found
No related merge requests found
...@@ -173,7 +173,7 @@ an interactive user. ...@@ -173,7 +173,7 @@ an interactive user.
Write .gitignore.d/<repo> via `git ls-files`. Write .gitignore.d/<repo> via `git ls-files`.
* <repo> <gitcommand>: * <repo> <gitcommand>:
Shortcut to run `vcsh` on a repo. Will prepend `git` to <command>. Shortcut to run `git` commands on a repo. Will prepend `git` to <gitcommand>.
* <repo>: * <repo>:
Shortcut to run `vcsh enter <repo>`. Shortcut to run `vcsh enter <repo>`.
... ...
......
...@@ -476,7 +476,7 @@ write_gitignore() { ...@@ -476,7 +476,7 @@ write_gitignore() {
use use
cd "$VCSH_BASE" || fatal "could not enter '$VCSH_BASE'" 11 cd "$VCSH_BASE" || fatal "could not enter '$VCSH_BASE'" 11
local GIT_VERSION=$(git --version) local GIT_VERSION="$(git --version)"
local GIT_VERSION_MAJOR=$(echo $GIT_VERSION | sed -n 's/.* \([0-9]\)\..*/\1/p') local GIT_VERSION_MAJOR=$(echo $GIT_VERSION | sed -n 's/.* \([0-9]\)\..*/\1/p')
local GIT_VERSION_MINOR=$(echo $GIT_VERSION | sed -n 's/.* \([0-9]\)\.\([0-9]\)\..*/\2/p') local GIT_VERSION_MINOR=$(echo $GIT_VERSION | sed -n 's/.* \([0-9]\)\.\([0-9]\)\..*/\2/p')
OLDIFS=$IFS OLDIFS=$IFS
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment