Skip to content
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
No related branches found
No related tags found
No related merge requests found
......@@ -173,7 +173,7 @@ an interactive user.
Write .gitignore.d/<repo> via `git ls-files`.
* <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>:
Shortcut to run `vcsh enter <repo>`.
......
......@@ -476,7 +476,7 @@ write_gitignore() {
use
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_MINOR=$(echo $GIT_VERSION | sed -n 's/.* \([0-9]\)\.\([0-9]\)\..*/\2/p')
OLDIFS=$IFS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment