-
Notifications
You must be signed in to change notification settings - Fork 93
Замена использования bat при работе с git #69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Замена использования bat при работе с git #69
Conversation
|
Oops! Законфликтилось. @khorevaa разрули, плиз. |
|
Сливать PR рано. Жду когда с gitrunner будут приняты другие и PR и передалаю gitrunner на работы с 1commands |
|
@khorevaa наверное надо еще сам gitrunner перевести на 1commands, иначе будет зависание чтения на потоках. |
|
туплю, он уже на 1commands |
|
Хм... оно даже собралось... |
|
@nixel2007 так я вроде gitrunner и переводил.. |
artbear
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@khorevaa @nixel2007 Нужны доработки или ответы на вопросы!
Жду
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Метод ПолучитьГитРепозиторий не корректно вызывается
сам метод часто вызывается перед вызовом команд гита (пуш, коммит и т.п.)
а при вызове этот метод постоянно вызывает установку настроек, что совершенно не нужно для указанных команд :(
Предлагаю добавить установку этих параметров один раз в начале работы продукта, а в дальнейшем уже не устанавливать настройки.
@khorevaa @nixel2007
Функция ПолучитьГитРепозиторий(Знач КаталогРабочейКопии)
- Если Дата = Неопределено Тогда
- Дата = ТекущаяДата();
- КонецЕсли;
+ ГитРепозиторий = Новый ГитРепозиторий;
+ ГитРепозиторий.УстановитьРабочийКаталог(КаталогРабочейКопии);
+ ГитРепозиторий.УстановитьНастройку("core.quotepath","false",РежимУстановкиНастроекGit.Локально);
+ ГитРепозиторий.УстановитьНастройку("merge.ours.driver","true",РежимУстановкиНастроекGit.Локально);
+ Возврат ГитРепозиторий;
+
+КонецФункции // ПолучитьГитРепозиторий()There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@khorevaa @nixel2007 Соответствующая веселуха с ci-сервера проекта :(
дофига ненужных команд
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А не надо включать отладочные логи всех библиотек :Р
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Странные логи. Видимо из gitrunner. Надо посмотреть почему лезит
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
потому что я это логирую, очевидно. вангую, что Артур как обычно включил все логи через rootLogger. естественно он видит всею
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
тут проблема не в лишних логах, а в том, что вызывается лишние и абсолютно не нужные команды, о которых я уже писал выше.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+ ГитРепозиторий.УстановитьРабочийКаталог(КаталогРабочейКопии);
+ ГитРепозиторий.УстановитьНастройку("core.quotepath","false",РежимУстановкиНастроекGit.Локально);
+ ГитРепозиторий.УстановитьНастройку("merge.ours.driver","true",РежимУстановкиНастроекGit.Локально);There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Как раз в данном случае отладочные логи очень четко показывают проблему.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Лог.Отладка(СтрШаблон давно устарел.
СтрШаблон не нужен, можно сразу писать Лог.Отладка("%1", Парам);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Лог.Отладка(СтрШаблон давно устарел.
СтрШаблон не нужен, можно сразу писать Лог.Отладка("%1", Парам);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Лог.Отладка(СтрШаблон давно устарел.
СтрШаблон не нужен, можно сразу писать Лог.Отладка("%1", Парам);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Лог.Отладка(СтрШаблон давно устарел.
СтрШаблон не нужен, можно сразу писать Лог.Отладка("%1", Парам);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Лог.Отладка(СтрШаблон давно устарел.
СтрШаблон не нужен, можно сразу писать Лог.Отладка("%1", Парам);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Лог.Отладка(СтрШаблон давно устарел.
СтрШаблон не нужен, можно сразу писать Лог.Отладка("%1", Парам);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Так и ПР висел хз скок времени
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@khorevaa @nixel2007 Почему подменяется возврат результата?
Было
Возврат Результат;
Стало
Возврат 0;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ммм косяк. Надо подумать! Поправлю на досуге хотя там вылетить исключение уже из gitrunner
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@khorevaa @nixel2007 Почему подменяется возврат результата?
Было
Возврат Результат;
Стало
Возврат 0;

Произведена замена основного функциаонала по работе с GIT. Теперь используется библиотека gitrunner.
Использование в тестах не заменено.
Важно!! Сливать PR можно только после выхода новой версии (предположительно 1.1.0) gitrunner (https://github.com/nixel2007/gitrunner)
Для проверки необходимо установить gitrunner из ветки develop