-
Notifications
You must be signed in to change notification settings - Fork 61
Closed
Labels
Description
My situation is as follows:
huo@BISONWS1256:~/stuff/temp/rtc2gitMigration/Architecture$ git status
On branch BP_Architektur_Stream
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
modified: Architekturdokumentation/build.gradle
renamed: Architekturdokumentation/src/main/asciidoc/arc42-template.adoc -> Architekturdokumentation/src/main/asciidoc/BisonProcessArchitekturModernisiert.adoc
huo@BISONWS1256:~/stuff/temp/rtc2gitMigration/Architecture$ git status --porcelain
M Architekturdokumentation/build.gradle
R Architekturdokumentation/src/main/asciidoc/arc42-template.adoc -> Architekturdokumentation/src/main/asciidoc/BisonProcessArchitekturModernisiert.adoc
huo@BISONWS1256:~/stuff/temp/rtc2gitMigration/Architecture$ git status -z
M Architekturdokumentation/build.gradle^@R Architekturdokumentation/src/main/asciidoc/BisonProcessArchitekturModernisiert.adoc^@Architekturdokumentation/src/main/asciidoc/arc42-template.adoc^@huo@BISONWS1256:~/stuff/temp/rtc2gitMigration/Architecture$
Here the ^@
denotes the zero delimiter.
Note that after the 2nd one there is a capital A which is part of the filename.
This leads to the following traceback:
Traceback (most recent call last):
File "migration.py", line 86, in <module>
migrate()
File "migration.py", line 68, in migrate
rtc.acceptchangesintoworkspace(rtc.getchangeentriestoaccept(changeentries, history))
File "/home/huo/gitrepos/rtcTo/rtc2git/rtcFunctions.py", line 213, in acceptchangesintoworkspace
Commiter.addandcommit(changeEntry)
File "/home/huo/gitrepos/rtcTo/rtc2git/gitFunctions.py", line 52, in addandcommit
Commiter.handle_captitalization_filename_changes()
File "/home/huo/gitrepos/rtcTo/rtc2git/gitFunctions.py", line 74, in handle_captitalization_filename_changes
os.chdir(directoryofnewfile)
FileNotFoundError: [Errno 2] No such file or directory: '/home/huo/stuff/temp/rtc2gitMigration/Architecture/hitekturdokumentation/src/main/asciidoc'
huo@BISONWS1256:~/gitrepos/rtcTo/rtc2git$