You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm experiencing some problems in using your tool.
I found some fix/workaround but I'm still getting errors and I'm unsure if everything will work correctly.
My current configuration is
OS: Windows 10 Pro 64 bit
Git: 2.35.1.2
Python: 3.10.3
All tests are performed using git-bash
note: some error message is loosely translated from Italian to English, so it may not match perfectly with the actual English version message
### Problem [1]
-> mkdir test-repo
-> cd test-repo
-> git init
-> ~/Downloads/git-rcs-keywords-master/install.py
fatal: no such section: filter.rcs-keywords
-> ~/Downloads/git-rcs-keywords-master/install.py
So, a second execution of install.py does not return errors.
It may be fixing some things during the second run, and/or it may be skipping the problematic steps because it found some files in the .git hierarchy, thus believing that installation has been previously completed.
The .git/filters directory is not there, anyway.
A third run gives back this:
-> ~/Downloads/git-rcs-keywords-master/install.py
Traceback (most recent call last):
File "C:\Users\CI\Downloads\git-rcs-keywords-master\install.py", line 408, in <module>
install()
File "C:\Users\CI\Downloads\git-rcs-keywords-master\install.py", line 390, in install
install_git_keywords(repo_dir='')
File "C:\Users\CI\Downloads\git-rcs-keywords-master\install.py", line 327, in install_git_keywords
register_file_pattern(git_dir)
File "C:\Users\CI\Downloads\git-rcs-keywords-master\install.py", line 271, in register_file_pattern
os.rename(attribute_file, attribute_backup)
FileExistsError: [WinError 183] Can't create a file, if it already exists: '.git\\info\\attributes' -> '.git\\info\\attributes~'
Impact: non working installation Solution: run git-bash as administrator.
It still requires a double run of install.py (see above), but it seems to be working.
In some previous attempt it reported a failure in creating symlinks, running as administrator solved that, although I could not reproduce the scenario.
### Problem [2]
-> git add test.txt
.git\hooks\rcs-filter-clean.py 'test.txt': .githooksrcs-filter-clean.py: command not found
error: external filter '.git\hooks\rcs-filter-clean.py %f' failed 127
error: external filter '.git\hooks\rcs-filter-clean.py %f' failed
warning: LF will be replaced by CRLF in test.txt.
The file will have its original line endings in your working directory
Impact: non working filtering Solution: I edited .git/config replacing double backward slashes with single forward slashes
-> git commit -m "test msg" test.txt
".git" is not recognized as an internal or external command operable program or batch file.
[master (root-commit) b860aab] test msg
1 file changed, 9 insertions(+)
create mode 100644 test.txt
-> git checkout test.txt
Updated 0 paths from the index
""\".git" is not recognized as an internal or external command operable program or batch file.
-> rm -f test.txt
-> git checkout test.txt
Updated 1 paths from the index
""\".git" is not recognized as an internal or external command operable program or batch file.
Impact: unknown Solution: unknown
###
Checking out test.txt does not change anything.
Removing test.txt and checking it out again successfully perform keywords expansion.
The text was updated successfully, but these errors were encountered:
Hi, I'm experiencing some problems in using your tool.
I found some fix/workaround but I'm still getting errors and I'm unsure if everything will work correctly.
My current configuration is
OS: Windows 10 Pro 64 bit
Git: 2.35.1.2
Python: 3.10.3
All tests are performed using git-bash
note: some error message is loosely translated from Italian to English, so it may not match perfectly with the actual English version message
###
Problem [1]
So, a second execution of install.py does not return errors.
It may be fixing some things during the second run, and/or it may be skipping the problematic steps because it found some files in the .git hierarchy, thus believing that installation has been previously completed.
The .git/filters directory is not there, anyway.
A third run gives back this:
Impact: non working installation
Solution: run git-bash as administrator.
It still requires a double run of install.py (see above), but it seems to be working.
In some previous attempt it reported a failure in creating symlinks, running as administrator solved that, although I could not reproduce the scenario.
###
Problem [2]
Impact: non working filtering
Solution: I edited .git/config replacing double backward slashes with single forward slashes
###
Problem [3]
Impact: unknown
Solution: unknown
###
Checking out test.txt does not change anything.
Removing test.txt and checking it out again successfully perform keywords expansion.
The text was updated successfully, but these errors were encountered: