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
2650689d
Commit
2650689d
authored
11 years ago
by
Richard Hartmann
Browse files
Options
Downloads
Plain Diff
Merge branch 'fix--mktemp_on_OSX'
parents
09f129a2
ecb36d5d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vcsh
+5
-1
5 additions, 1 deletion
vcsh
with
5 additions
and
1 deletion
vcsh
+
5
−
1
View file @
2650689d
...
@@ -365,7 +365,11 @@ write_gitignore() {
...
@@ -365,7 +365,11 @@ write_gitignore() {
file
=
"
$new
"
file
=
"
$new
"
done
;
done
;
done
|
sort
-u
)
done
|
sort
-u
)
tempfile
=
$(
mktemp
)
||
fatal
"could not create tempfile"
51
# Contrary to GNU mktemp, mktemp on BSD/OSX requires a template for temp files
# Use the template GNU mktemo defaults to
tempfile
=
$(
mktemp
tmp.XXXXXXXXXX
)
||
fatal
"could not create tempfile"
51
echo
'*'
>
"
$tempfile
"
||
fatal
"could not write to '
$tempfile
'"
57
echo
'*'
>
"
$tempfile
"
||
fatal
"could not write to '
$tempfile
'"
57
for
gitignore
in
$gitignores
;
do
for
gitignore
in
$gitignores
;
do
echo
"
$gitignore
"
|
sed
's@^@!/@'
>>
"
$tempfile
"
||
fatal
"could not write to '
$tempfile
'"
57
echo
"
$gitignore
"
|
sed
's@^@!/@'
>>
"
$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