Merge branch 'develop' into windows
This commit is contained in:
commit
37a87fe2dc
1 changed files with 6 additions and 6 deletions
|
@ -158,7 +158,7 @@ class Snag {
|
||||||
result = execute(_baseCommand ~ ["rev-parse", "--short", "HEAD"]);
|
result = execute(_baseCommand ~ ["rev-parse", "--short", "HEAD"]);
|
||||||
if (result.status == 128) {
|
if (result.status == 128) {
|
||||||
// Если это самый первый коммит после инициализации репозитория
|
// Если это самый первый коммит после инициализации репозитория
|
||||||
git(["add", _config.project], "Failed to prepare files for archiving");
|
git(["add", "."], "Failed to prepare files for archiving");
|
||||||
git(["commit", "-m"] ~ message, "Failed to create a snapshot");
|
git(["commit", "-m"] ~ message, "Failed to create a snapshot");
|
||||||
newSnapshot = git(
|
newSnapshot = git(
|
||||||
["rev-parse", "--short", "HEAD"],
|
["rev-parse", "--short", "HEAD"],
|
||||||
|
@ -197,7 +197,7 @@ class Snag {
|
||||||
"Failed to create a branch from the current state"
|
"Failed to create a branch from the current state"
|
||||||
);
|
);
|
||||||
git(
|
git(
|
||||||
["add", _config.project],
|
["add", "."],
|
||||||
"Failed to prepare files for archiving"
|
"Failed to prepare files for archiving"
|
||||||
);
|
);
|
||||||
git(
|
git(
|
||||||
|
@ -211,7 +211,7 @@ class Snag {
|
||||||
} else {
|
} else {
|
||||||
// Если коммит является посленим в ветке
|
// Если коммит является посленим в ветке
|
||||||
git(
|
git(
|
||||||
["add", _config.project],
|
["add", "."],
|
||||||
"Failed to prepare files for archiving"
|
"Failed to prepare files for archiving"
|
||||||
);
|
);
|
||||||
git(
|
git(
|
||||||
|
@ -273,7 +273,7 @@ class Snag {
|
||||||
);
|
);
|
||||||
if (result.output.length) {
|
if (result.output.length) {
|
||||||
git(
|
git(
|
||||||
["restore", _config.project],
|
["restore", "."],
|
||||||
"Failed to reset file changes state"
|
"Failed to reset file changes state"
|
||||||
);
|
);
|
||||||
git(
|
git(
|
||||||
|
@ -406,7 +406,7 @@ class Snag {
|
||||||
);
|
);
|
||||||
|
|
||||||
// Создание нового снимка на основе состояния файлов из распакованного архива
|
// Создание нового снимка на основе состояния файлов из распакованного архива
|
||||||
result = execute(customCommand ~ ["add", tempDirectory]);
|
result = execute(customCommand ~ ["add", "."]);
|
||||||
result.status &&
|
result.status &&
|
||||||
throw new SnagException(
|
throw new SnagException(
|
||||||
"Failed to prepare files for archiving:\n"
|
"Failed to prepare files for archiving:\n"
|
||||||
|
@ -427,7 +427,7 @@ class Snag {
|
||||||
|
|
||||||
// Сброс состояния файлов
|
// Сброс состояния файлов
|
||||||
git(
|
git(
|
||||||
["restore", _config.project],
|
["restore", "."],
|
||||||
"Failed to reset file changes state"
|
"Failed to reset file changes state"
|
||||||
);
|
);
|
||||||
git(
|
git(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue