mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-03-18 02:00:22 +01:00
Fixes incorrect warning "could not set executable flag"
This warning was triggered, when the change was successful. Of course, this should be the other way.
This commit is contained in:
2
gradle/changelog/fix_executable_warning.yaml
Normal file
2
gradle/changelog/fix_executable_warning.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
- type: fixed
|
||||
description: Incorrect log warning "could not set executable flag"
|
||||
@@ -164,7 +164,7 @@ public interface ModifyWorkerHelper extends ModifyCommand.Worker {
|
||||
}
|
||||
boolean executable = Files.isExecutable(targetFile);
|
||||
Files.move(file.toPath(), targetFile, REPLACE_EXISTING);
|
||||
if (targetFile.toFile().setExecutable(executable)) {
|
||||
if (!targetFile.toFile().setExecutable(executable)) {
|
||||
LOG.warn("could not set executable flag for file {}", targetFile);
|
||||
}
|
||||
addFileToScm(path, targetFile);
|
||||
|
||||
Reference in New Issue
Block a user