View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015758CMakeCMakepublic2015-09-25 17:382016-03-07 09:12
ReporterKevin Wojniak 
Assigned ToBrad King 
PrioritynormalSeverityfeatureReproducibilityalways
StatusclosedResolutionfixed 
PlatformWindowsOSOS Version
Product VersionCMake 3.3.2 
Target VersionCMake 3.5Fixed in VersionCMake 3.5 
Summary0015758: FindGit does not work when git is installed through SourceTree
Descriptionhttps://www.sourcetreeapp.com [^]

SourceTree on Windows can download and setup git. When this happens it places it (at least on my system) at:

%USERPROFILE%/AppData/Local/Atlassian/SourceTree/git_local/bin/git.exe

But FindGit does not find it in this location.
Steps To Reproduce1. Make sure no git version is installed in Windows
2. Install SourceTree and when prompted install git
3. In CMake - include(FindGit)
4. GIT_FOUND will be false
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0039483)
Brad King (manager)
2015-09-28 08:55

Is there a Windows Registry entry associated with this installation?
(0039490)
Kevin Wojniak (reporter)
2015-09-28 12:26

What kind of entry? I didn't see anything under Software/Atlassian where it would be expected. There is a file association under HKEY_CURRENT_USER/Software/Classes/sourcetree.
(0039491)
Brad King (manager)
2015-09-28 12:56

Here is a change made for a similar case:

 FindGit: Search in 'GitHub for Windows' user directory
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=54690624 [^]

Try making a similar change to your FindGit.cmake to glob the SourceTree location.
(0039578)
Kevin Wojniak (reporter)
2015-10-12 15:07

Here's my pull request: https://github.com/Kitware/CMake/pull/194 [^]
(0039579)
Brad King (manager)
2015-10-12 15:26

Thanks, applied with minor tweaks:

 FindGit: Search in 'Atlassian SourceTree' user directory
 https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=57f701a7 [^]
(0040613)
Robert Maynard (manager)
2016-03-07 09:12

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2015-09-25 17:38 Kevin Wojniak New Issue
2015-09-28 08:55 Brad King Note Added: 0039483
2015-09-28 12:26 Kevin Wojniak Note Added: 0039490
2015-09-28 12:56 Brad King Note Added: 0039491
2015-10-12 15:07 Kevin Wojniak Note Added: 0039578
2015-10-12 15:26 Brad King Note Added: 0039579
2015-10-12 15:26 Brad King Assigned To => Brad King
2015-10-12 15:26 Brad King Status new => resolved
2015-10-12 15:26 Brad King Resolution open => fixed
2015-10-12 15:26 Brad King Fixed in Version => CMake 3.5
2015-10-12 15:26 Brad King Target Version => CMake 3.5
2016-03-07 09:12 Robert Maynard Note Added: 0040613
2016-03-07 09:12 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team