Repository navigation
Fix git reset --end-of-options error on file upload and edit - #8184
Merged
unknwon merged 6 commits intoFeb 19, 2026
Merged
Conversation
The git reset command does not support the --end-of-options flag, which was incorrectly added in git-module v1.8.6. This caused "fatal: option '--end-of-options' must come before non-option arguments" errors when discarding local repo branch changes. The updated git-module replaces --end-of-options with -- (double dash) for git reset, which is the correct way to separate options from pathspecs. Co-Authored-By: Claude Opus 4.6 <[email protected]>
jss-spector
marked this pull request as ready for review
February 18, 2026 23:06
unknwon
approved these changes
Feb 18, 2026
…rintf) Co-Authored-By: Claude Opus 4.6 <[email protected]>
unknwon
requested changes
Feb 18, 2026
|
|
||
| ### Changed | ||
|
|
||
| - Replaced `WriteString(fmt.Sprintf(...))` with `fmt.Fprintf(...)` in webhook and view code per staticcheck QF1012. |
Co-Authored-By: Claude Opus 4.6 <[email protected]>
unknwon
approved these changes
Feb 19, 2026
unknwon
deleted the
jss/ntcu-fix-git-reset-command-error-option-end-of-options
branch
February 19, 2026 00:04
unknwon
pushed a commit
that referenced
this pull request
Feb 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe the pull request
Bump
github.com/gogs/git-moduleto a version that fixes the incorrect use of--end-of-optionsin thegit resetcommand. Thegit resetcommand does not support--end-of-options, and its inclusion (introduced in git-module v1.8.6) causedfatal: option '--end-of-options' must come before non-option argumentserrors when discarding local branch changes. This broke file uploads and edits via the web interface and API for users with Git versions that do not silently ignore the unsupported flag.The upstream fix (gogs/git-module@6e86531) replaces
--end-of-optionswith--(double dash) forgit reset, which is the correct way to separate options from pathspecs.Link to the issue: fixes #8183, fixes #8181
Checklist
Test plan
--end-of-optionsrelated errors — confirm none appear.