Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 369553 - Remote project synchronization doesn't find git when installed in non-standard location
Summary: Remote project synchronization doesn't find git when installed in non-standar...
Status: CLOSED FIXED
Alias: None
Product: PTP
Classification: Tools
Component: RDT.sync (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: John Eblen CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 397199
Blocks:
  Show dependency tree
 
Reported: 2012-01-24 11:37 EST by Christoph Pospiech CLA
Modified: 2012-12-27 16:46 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.