Указан явный путь к рабочей директории проекта при вызове команды git, так как вызов snag из под не рабочей директории не выполнял некоторые операции на старых версиях git
This commit is contained in:
parent
ee41d5f96d
commit
80ace62abf
2 changed files with 6 additions and 6 deletions
|
@ -22,8 +22,8 @@ class Snag {
|
|||
|
||||
this(SnagConfig config) {
|
||||
_baseCommand = format(
|
||||
"git --git-dir=%s --work-tree=%s",
|
||||
config.git, config.project
|
||||
"git -C %s --git-dir=%s --work-tree=%s",
|
||||
config.project, config.git, config.project
|
||||
).split();
|
||||
|
||||
_config = config;
|
||||
|
@ -381,8 +381,8 @@ class Snag {
|
|||
|
||||
// Выполнение git команд относительно распакованного архива
|
||||
string[] customCommand = format(
|
||||
"git --git-dir=%s --work-tree=%s",
|
||||
_config.git, tempDirectory
|
||||
"git -C %s --git-dir=%s --work-tree=%s",
|
||||
tempDirectory, _config.git, tempDirectory
|
||||
).split();
|
||||
|
||||
// Необходимо проверить, что текущее состояние файлов не идентично файлам распакованного архива
|
||||
|
|
|
@ -75,8 +75,8 @@ class SnagRules {
|
|||
_gitignoreBak = _gitignore ~ ".bak";
|
||||
|
||||
_baseCommand = format(
|
||||
"git --git-dir=%s --work-tree=%s",
|
||||
config.git, config.project
|
||||
"git -C %s --git-dir=%s --work-tree=%s",
|
||||
config.project, config.git, config.project
|
||||
).split();
|
||||
|
||||
generate();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue