fix(backend-gitlab): use move commit action only if paths are different (#4064)
This commit is contained in:
parent
8df4926897
commit
0d1a3bb9f0
@ -478,8 +478,9 @@ export default class API {
|
||||
let path = trimStart(file.path, '/');
|
||||
let oldPath = undefined;
|
||||
if (fileExists) {
|
||||
action = file.newPath ? CommitAction.MOVE : CommitAction.UPDATE;
|
||||
oldPath = file.newPath && path;
|
||||
action =
|
||||
file.newPath && file.newPath !== oldPath ? CommitAction.MOVE : CommitAction.UPDATE;
|
||||
path = file.newPath ? trimStart(file.newPath, '/') : path;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user