oscript-library / oscript-library/gitsync

Рассинхронизация "(HEAD -> master)" и "(origin/master)"

Open
#317 4 comments 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

Описание ошибки
(HEAD -> master) указывает на последний коммит. Также в удаленном репозитории тоже содержится последний коммит.
(origin/master) указывает на коммит, который был отправлен командой вручную "git push -u origin --all".

Сценарий воспроизведения

  1. До подключения плагина "sync-remote" в удаленный репозиторий отправил изменения через "git push -u origin --all".

  2. В результате (HEAD -> master, origin/master) указывали на последний коммит.

  3. Далее стал использовать плагин для синхронизации:
    "gitsync --v8version 8.3.21.1901 --tempdir tempdir sync -u user -p pass --pull --push STORAGE WORKDIR URL"

  4. В результате (HEAD -> master) сдвинулся на последний коммит, он отправился в удаленный репозиторий, а (origin/master) остался на прежнем месте - там, где был после команды "git push -u origin --all".

Ожидаемое поведение если бы ошибки не было
(HEAD -> master, origin/master) указывали на последний коммит.

Скриншоты
РезультатОтладки
РезультатОтладки

Окружение:

  • Версия операционной системы: [Windows 10]
  • Редакция 1С платформы [8.3.21.1901z]
  • Версия Gitsync [3.6.0]
  • Версия OScript [1.9.1.7]

Дополнительный контекст

Конфигурация - доработанная УХ. Режим защиты от опасных действий - выключен

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

Start by reproducing the documented sequence: run git push -u origin --all, then the shown gitsync ... sync --pull --push command, and inspect HEAD, master, and origin/master. Trace the sync-remote handling of the push operation and verify that origin/master advances to the pushed commit; done means both refs identify the latest commit.

Written by the indexing model from the issue text.

Assessment

Tech stack
git
Domain
devops, tooling
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.