Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vcsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kevin Lyda
vcsh
Commits
e727c2f4
Commit
e727c2f4
authored
11 years ago
by
Richard Hartmann
Browse files
Options
Downloads
Patches
Plain Diff
vcsh: Move up gitignore check
parent
a14137fd
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
vcsh
+4
-4
4 additions, 4 deletions
vcsh
with
4 additions
and
4 deletions
vcsh
+
4
−
4
View file @
e727c2f4
...
@@ -83,6 +83,10 @@ fi
...
@@ -83,6 +83,10 @@ fi
[
-z
"
$VCSH_GITIGNORE
"
]
&&
VCSH_GITIGNORE
=
'exact'
[
-z
"
$VCSH_GITIGNORE
"
]
&&
VCSH_GITIGNORE
=
'exact'
[
-z
"
$VCSH_WORKTREE
"
]
&&
VCSH_WORKTREE
=
'absolute'
[
-z
"
$VCSH_WORKTREE
"
]
&&
VCSH_WORKTREE
=
'absolute'
if
[
!
"x
$VCSH_GITIGNORE
"
=
'xexact'
]
&&
[
!
"x
$VCSH_GITIGNORE
"
=
'xnone'
]
&&
[
!
"x
$VCSH_GITIGNORE
"
=
'xrecursive'
]
;
then
fatal
"'
\$
VCSH_GITIGNORE' must equal 'exact', 'none', or 'recursive'"
1
fi
if
[
!
"x
$VCSH_WORKTREE
"
=
'xabsolute'
]
&&
[
!
"x
$VCSH_WORKTREE
"
=
'xrelative'
]
;
then
if
[
!
"x
$VCSH_WORKTREE
"
=
'xabsolute'
]
&&
[
!
"x
$VCSH_WORKTREE
"
=
'xrelative'
]
;
then
fatal
"'
\$
VCSH_WORKTREE' must equal 'absolute', or 'relative'"
1
fatal
"'
\$
VCSH_WORKTREE' must equal 'absolute', or 'relative'"
1
fi
fi
...
@@ -382,10 +386,6 @@ write_gitignore() {
...
@@ -382,10 +386,6 @@ write_gitignore() {
fatal
"could not move '
$tempfile
' to '
$VCSH_BASE
/.gitignore.d/
$VCSH_REPO_NAME
'"
53
fatal
"could not move '
$tempfile
' to '
$VCSH_BASE
/.gitignore.d/
$VCSH_REPO_NAME
'"
53
}
}
if
[
!
"x
$VCSH_GITIGNORE
"
=
'xexact'
]
&&
[
!
"x
$VCSH_GITIGNORE
"
=
'xnone'
]
&&
[
!
"x
$VCSH_GITIGNORE
"
=
'xrecursive'
]
;
then
fatal
"'
\$
VCSH_GITIGNORE' must equal 'exact', 'none', or 'recursive'"
1
fi
if
[
"
$1
"
=
'clone'
]
;
then
if
[
"
$1
"
=
'clone'
]
;
then
[
-z
"
$2
"
]
&&
fatal
"
$1
: please specify a remote"
1
[
-z
"
$2
"
]
&&
fatal
"
$1
: please specify a remote"
1
export
VCSH_COMMAND
=
"
$1
"
export
VCSH_COMMAND
=
"
$1
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment