oscript-library / oscript-library/gitsync
Рассинхронизация "(HEAD -> master)" и "(origin/master)"
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".
Сценарий воспроизведения
-
До подключения плагина "sync-remote" в удаленный репозиторий отправил изменения через "git push -u origin --all".
-
В результате (HEAD -> master, origin/master) указывали на последний коммит.
-
Далее стал использовать плагин для синхронизации:
"gitsync --v8version 8.3.21.1901 --tempdir tempdir sync -u user -p pass --pull --push STORAGE WORKDIR URL" -
В результате (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
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
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