oscript-library / oscript-library/gitsync

Кириллица в файле .gitignore после команды sync

Open
#338 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

Описание ошибки
Команда sync меняет кириллицу в .gitignore

Сценарий воспроизведения
Шаги по воспроизведению:

  1. Записать в .gitignore записи с кириллицей в путях, например "src/cf/Reports/РегламентированныйОтчет*/"
  2. Сохранить .gitignore в UTF-8
  3. Выполнить инициализацию репозитория (команда init) и выполнить первую синхронизацию хранилища с локальным репозиторием (команда sync)
  4. В файле .gitgnore добавится запись вида "src\cfe\ConfigDumpInfo.xml", но при этом ранее добавленная запись с кириллицей будет преобразована в "крякозябры":
    "src/cf/Reports/РегламентированныйОтчет*/"
    (при этом кодировка файла станет UTF-8 без BOM)

Ожидаемое поведение если бы ошибки не было
Кириллица в файле .gitignore должна остаться без перекодировки

Окружение:

  • Версия операционной системы: Windows Server 2019
  • Редакция 1С платформы 8.3.27.1719
  • Версия Gitsync 3.6.1
  • Версия OScript 1.9.3.15

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

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

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 the issue using the .gitignore example and the init and sync commands on the stated Windows, 1C Enterprise, Gitsync, and OScript versions. Inspect the sync path that reads and rewrites .gitignore; done means the Cyrillic path remains unchanged and the generated entry is still added without unwanted recoding.

Written by the indexing model from the issue text.

Assessment

Tech stack
git
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.