Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
renovate
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
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
GitHub Mirror
Renovate Bot
renovate
Commits
5a8bcffb
Commit
5a8bcffb
authored
Apr 10, 2019
by
Rhys Arkins
Browse files
Options
Downloads
Patches
Plain Diff
fix(gitFs): force renovate.json add
parent
9683265d
Branches
Branches containing commit
Tags
15.11.2
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/platform/git/storage.js
+6
-1
6 additions, 1 deletion
lib/platform/git/storage.js
with
6 additions
and
1 deletion
lib/platform/git/storage.js
+
6
−
1
View file @
5a8bcffb
...
@@ -291,7 +291,12 @@ class Storage {
...
@@ -291,7 +291,12 @@ class Storage {
for
(
const
file
of
files
)
{
for
(
const
file
of
files
)
{
await
fs
.
writeFile
(
join
(
cwd
,
file
.
name
),
Buffer
.
from
(
file
.
contents
));
await
fs
.
writeFile
(
join
(
cwd
,
file
.
name
),
Buffer
.
from
(
file
.
contents
));
}
}
await
git
.
add
(
files
.
map
(
f
=>
f
.
name
));
const
fileNames
=
files
.
map
(
f
=>
f
.
name
);
// istanbul ignore if
if
(
fileNames
.
length
===
1
&&
fileNames
[
0
]
===
'
renovate.json
'
)
{
fileNames
.
shift
(
'
-f
'
);
}
await
git
.
add
(
fileNames
);
await
git
.
commit
(
message
);
await
git
.
commit
(
message
);
await
git
.
push
([
await
git
.
push
([
'
origin
'
,
'
origin
'
,
...
...
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