mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
[PR #230] [MERGED] Umk: Git exe file path fix for windows builds. #251
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/ultimatepp#251
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ultimatepp/ultimatepp/pull/230
Author: @ismail-yilmaz
Created: 2/1/2025
Status: ✅ Merged
Merged: 2/2/2025
Merged by: @mirek-fidler
Base:
master← Head:umk_git_fix📝 Commits (1)
98afc67Umk: Git exe file path fix for windows builds.📊 Changes
4 files changed (+22 additions, -6 deletions)
View changed files
📝
uppsrc/ide/Builders/CppBuilder.cpp(+4 -3)📝
uppsrc/ide/Core/Core.h(+1 -0)📝
uppsrc/ide/Core/Util.cpp(+14 -0)📝
uppsrc/umk/UppHub.cpp(+3 -3)📄 Description
This PR addresses the Git executable path issue on Windows. (See: issue #220)
Problem
Currently, umk uses only
"git"as the executable path on both POSIX systems and Windows. While this works fine on POSIX, it causes issues on Windows because the system searches for Git in system directories. If Git is not installed globally, umk fails to perform Git-related operations (e.g., UppHub).Solution
Since mingit is shipped by default, umk should first attempt to locate its executable, assuming it resides in a path relative to umk's executable folder.
This PR introduces a function:
GetGitPath(), which:"git"executable.This ensures umk can reliably use Git on Windows.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.