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
fec845ea
Commit
fec845ea
authored
11 years ago
by
Richard Hartmann
Browse files
Options
Downloads
Patches
Plain Diff
vcsh: More resilient variable handling for 6b22746e94bf469dd462907fd43d13a454e56ede
parent
769375ca
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
vcsh
+1
-1
1 addition, 1 deletion
vcsh
with
1 addition
and
1 deletion
vcsh
+
1
−
1
View file @
fec845ea
...
...
@@ -361,7 +361,7 @@ write_gitignore() {
# Contrary to GNU mktemp, mktemp on BSD/OSX requires a template for temp files
# Use the template GNU mktemo defaults to
# The downside to this is that we need to account for unset TMPDIR
tempfile
=
$(
mktemp
${
TMPDIR
:-
/tmp
}
/tmp.XXXXXXXXXX
)
||
fatal
"could not create tempfile: '
${
tempfile
}
'"
51
tempfile
=
$(
mktemp
"
${
TMPDIR
:-
/tmp
}
/tmp.XXXXXXXXXX
"
)
||
fatal
"could not create tempfile: '
${
tempfile
}
'"
51
echo
'*'
>
"
$tempfile
"
||
fatal
"could not write to '
$tempfile
'"
57
for
gitignore
in
$gitignores
;
do
...
...
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