oscript-library / oscript-library/gitsync
Выполнение gitsync sync в репозитории без remotes
Open
Nobody has claimed this yet.
- Dominant language
- 1C Enterprise
- Stars
- 333
- Forks
- 98
- PR merge metrics
- No merged PRs in 30d
Description
Выполнение gitsync export внутри git-репозитория, не имеющего remote возникает ошибка:
C:\myRepo>gitsync sync <parameters>
GitSync v2.4.0
ИНФОРМАЦИЯ - Начинаю синхронизацию хранилища 1С и репозитария GIT
ИНФОРМАЦИЯ - Получение изменений с удаленного узла (pull)
ОШИБКА - Получен ненулевой код возврата 1. Выполнение скрипта остановлено!
КРИТИЧНАЯОШИБКА - {Модуль C:\Program Files (x86)\OneScript\lib\gitrunner\src\ГитРепозиторий.os / Ошибка в строке: 840 / fatal: 'master' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.}
Ожидаемое поведение: Варианта два:
- Выполнять, по сути, export
- Не выполнять синхронизацию, но информативно оповещать пользователя о сути затруднений, чтобы пользователю было понятно, что произошло и почему произошло для того, чтобы принять решение о своих дальнейших действиях.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce gitsync sync in a Git repository without remotes and inspect the GitRepository.os failure reported at line 840. Trace how the sync command handles the pull step, then determine whether the completed behavior should perform an export or stop with an explanatory message. Verify the chosen behavior against the reported scenario.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100