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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kevin Lyda
vcsh
Commits
8d993259
Commit
8d993259
authored
Dec 29, 2013
by
Richard Hartmann
Browse files
Options
Downloads
Patches
Plain Diff
vcsh: Improve comments
parent
c3fe5b51
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
+2
-2
2 additions, 2 deletions
vcsh
with
2 additions
and
2 deletions
vcsh
+
2
−
2
View file @
8d993259
...
@@ -359,8 +359,8 @@ write_gitignore() {
...
@@ -359,8 +359,8 @@ write_gitignore() {
done
|
sort
-u
)
done
|
sort
-u
)
# Contrary to GNU mktemp, mktemp on BSD/OSX requires a template for temp files
# Contrary to GNU mktemp, mktemp on BSD/OSX requires a template for temp files
# Us
e the
template GNU mktemp default
s
to
# Us
ing a
template
makes
GNU mktemp default to
$PWD and not #TMPDIR for tempfile location
# T
he downside to this is that we need to account for unset TMPDIR
# T
o make every OS happy, set full path explicitly
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
echo
'*'
>
"
$tempfile
"
||
fatal
"could not write to '
$tempfile
'"
57
...
...
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