Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 369553

Summary: Remote project synchronization doesn't find git when installed in non-standard location
Product: [Tools] PTP Reporter: Christoph Pospiech <pospiech-HD>
Component: RDT.syncAssignee: John Eblen <jeblen>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jeblen
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on: 397199    
Bug Blocks:    

Description Christoph Pospiech CLA 2012-01-24 11:37:21 EST
Build Identifier: Build id: 20110916-0149

If git has been compiled and installed in a non-standard location, e.g. an NFS-mounted shared file system on a cluster, the remote project synchronization stops with the following error message.
Synchronization error for project: sync_test
remote git init failed with message: sh: git: not found.

A preliminary analysis revealed that eclipse starts a no-login shell which does not execute .profile. Hence the PATH settings to find git are not recognized. 

Reproducible: Always

Steps to Reproduce:
1.Create a new general project "sync_test"
2.Add a new file "hello.c" with contents (e.g.)
#include <stdio.h>

int main(int argc, char *argv[]) {
	printf("hello world");
	return 0;
}
3. project -> New -> Convert Project into a C/C++ project
4. project -> New -> other -> Remote -> Convert C/C++ project to a synchronized project
5. Check settings/path names in project -> properties
6. Attempt a remote compilation
Comment 1 John Eblen CLA 2012-12-27 16:46:55 EST
This issue was resolved, I think, with bug 397199, which allows users to set and change the git binary. Please reopen if you think more is required.