mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-03-07 21:00:54 +01:00
Merge with 2.0.0-m3
This commit is contained in:
@@ -43,6 +43,7 @@ public class RepositoryUtil {
|
||||
|
||||
static Changeset createAndCommitFile(RepositoryClient repositoryClient, String username, String fileName, String content) throws IOException {
|
||||
File file = new File(repositoryClient.getWorkingCopy(), fileName);
|
||||
Files.createParentDirs(file);
|
||||
Files.write(content, file, Charsets.UTF_8);
|
||||
addWithParentDirectories(repositoryClient, file);
|
||||
return commit(repositoryClient, username, "added " + fileName);
|
||||
@@ -53,7 +54,6 @@ public class RepositoryUtil {
|
||||
String thisName = file.getName();
|
||||
String path;
|
||||
if (!repositoryClient.getWorkingCopy().equals(parent)) {
|
||||
addWithParentDirectories(repositoryClient, parent);
|
||||
path = addWithParentDirectories(repositoryClient, parent) + File.separator + thisName;
|
||||
} else {
|
||||
path = thisName;
|
||||
|
||||
Reference in New Issue
Block a user