aws / aws/git-remote-codecommit
Unicode character in the Author field
- Vorherrschende Sprache
- Python
- Sterne
- 289
- Forks
- 40
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Because Github supports Unicode characters It's possible that some repositories have a Unicode character in the **Author field** by accident or on purpose, so when we face this error when pushing our code to AWS CodeCommit.
The CodeCommit server rejects commits that have Unicode characters in the **Author field**:
```
$ git push code-commit master
Enumerating objects: 15065, done.
Counting objects: 100% (13492/13492), done.
Delta compression using up to 12 threads
Compressing objects: 100% (4315/4315), done.
Writing objects: 100% (13136/13136), 3.67 MiB | 1.25 MiB/s, done.
Total 13136 (delta 8667), reused 12513 (delta 8055)
remote:
remote: Unable to read the commit object: 2cabaa9aefc03115a3d1df19218bdeae3c4cf28c
error: remote unpack failed: Unable to read the commit object: 2cabaa9aefc03115a3d1df19218bdeae3c4cf28c
To ssh://git-codecommit.us-east-1.amazonaws.com/v1/repos/afshin-test
! [remote rejected] master -> master (unpacker error)
error: failed to push some refs to 'ssh://git-codecommit.us-east-1.amazonaws.com/v1/repos/afshin-test'
```
```
$ git log
...
commit 97b62bb2f12b639c603d1f7205418f26b511893b
Author: Afshin Paydar
Date: Tue Sep 18 19:43:10 2020 +0000
```
Beitragsleitfaden
Rechercherichtung
Es wird keine Quelldatei und kein Test genannt. Beginne damit, den AWS CodeCommit-Push mit einem Commit zu reproduzieren, dessen Author-Feld U+2028 enthält, und verfolge anschließend den an der Verarbeitung dieses Commits beteiligten git-remote-codecommit-Pfad. Als erledigt gilt die Aufgabe, wenn das Szenario mit dem Unicode-Autor ausdrücklich abgedeckt ist und die gemeldete Ablehnung durch das Remote behoben wurde.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- aws, git, python
- Bereich
- cloud, devtools
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 30/100