oscript-library / oscript-library/gitsync

Выполнение gitsync sync в репозитории без remotes

Open
#104 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.