-
Notifications
You must be signed in to change notification settings - Fork 674
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--commit-callback fails when trying to add files - Git version 2.24 #21
Comments
Discussed and fixed at https://stackoverflow.com/a/59033952/7976758. Recommend closing. |
While lack of quotes around the blob object id is the first obvious problem, I'd say there are a few more:
|
Hi
|
This is looking better, but b'/MDC.7z' is still an absolute path (due to the leading slash). It should be the path within the repo you want the file known as. If you want it at the toplevel, then it's just b'MDC.7z'. Does $(git hash-object -w '/C/MDC/MDC.7z') return the expected hash? Sorry, haven't used Windows in decades so I don't know how that side works. Can you provide the output of .git/fast_import_crash_15656? I suspect though that it's related to the "Empty path component found in input". i.e. it thinks you want the file stuck in $DIRNAME/$FILENAME (since you had one slash) where $DIRNAME is the empty string (an error) and $FILENAME is MDC.7z. |
thanks for your great & quick support With the following command it is running!!!!
|
If you wanted /C/MDC/MDC.7z to appear within your repo in some subdirectory, let's say you wanted it under sources/archives/MDC.7z, then you'd use Glad you've got it working. Does this answer all your questions? |
I pushed up 4de3861 to try to avoid anyone else tripping over the same problems. |
Hi |
Yes, you can do it in the same command, but python makes it difficult to put multiple statements onto a single line so you may need some line breaks. It'd look something like:
or
The latter form could perhaps be put on one line, though it gets hard to read. |
I'm assuming that has answered your questions, so I'll go ahead and close out. Let me know if that's not the case. |
Hi
Trying to add file to the root of the branch fails with following error:
Any advise would be great
Tried on 3 different repos
The text was updated successfully, but these errors were encountered: