Fix git fetch tag conflicts on case-insensitive filesystems#20
Draft
Fix git fetch tag conflicts on case-insensitive filesystems#20
Conversation
…onflict The issue was caused by two tags with different cases (V4.10.8 and v4.10.8) in the repository. On case-insensitive filesystems (Windows, macOS default), git fetch --tags fails with a reference conflict. Solution: Instead of fetching all tags, we now: 1. Check if the tag exists locally first (from checkout) 2. If not found locally, fetch only the specific tag needed 3. Handle fetch failures gracefully This avoids the case-insensitive filesystem conflict while still checking if tags exist. Co-authored-by: TanNhatCMS <113796420+TanNhatCMS@users.noreply.github.com>
Made error redirection consistent across all tag checking commands for better code clarity. Co-authored-by: TanNhatCMS <113796420+TanNhatCMS@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix build issue in FlyEnv action
Fix git fetch tag conflicts on case-insensitive filesystems
Dec 7, 2025
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.
Build workflows failed on Windows/macOS when fetching tags due to repository containing both
V4.10.8andv4.10.8. Case-insensitive filesystems cannot distinguish these references, causinggit fetch --tagsto fail with reference conflicts.Changes
Before
After
This eliminates the filesystem conflict while preserving tag validation functionality.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.