Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Kevin Lyda
vcsh
Commits
0fe34b82
Commit
0fe34b82
authored
Mar 26, 2016
by
Richard Hartmann
Browse files
Merge pull request #198 from ohspite/fix-git-version-parsing
Fix git version parsing when there are spaces
parents
8ae70a31
6909ac8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
vcsh
View file @
0fe34b82
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment