Correct GIT_INDEX_FILE environment variable

This is GIT_INDEX_FILE, not GIT_INDEX.

Change-Id: Ib3af28ba196f74c8cb4d318b57ea346bb90f9a1e
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
Shawn O. Pearce 2010-12-22 11:26:33 -08:00
parent 8f419dc5e6
commit 0cd76ab65d
2 changed files with 3 additions and 3 deletions

View File

@ -50,7 +50,7 @@
import static org.eclipse.jgit.lib.Constants.GIT_ALTERNATE_OBJECT_DIRECTORIES_KEY;
import static org.eclipse.jgit.lib.Constants.GIT_CEILING_DIRECTORIES_KEY;
import static org.eclipse.jgit.lib.Constants.GIT_DIR_KEY;
import static org.eclipse.jgit.lib.Constants.GIT_INDEX_KEY;
import static org.eclipse.jgit.lib.Constants.GIT_INDEX_FILE_KEY;
import static org.eclipse.jgit.lib.Constants.GIT_OBJECT_DIRECTORY_KEY;
import static org.eclipse.jgit.lib.Constants.GIT_WORK_TREE_KEY;
@ -339,7 +339,7 @@ public B readEnvironment(SystemReader sr) {
}
if (getIndexFile() == null) {
String val = sr.getenv(GIT_INDEX_KEY);
String val = sr.getenv(GIT_INDEX_FILE_KEY);
if (val != null)
setIndexFile(new File(val));
}

View File

@ -288,7 +288,7 @@ public final class Constants {
/**
* The environment variable that tells us which file holds the Git index.
*/
public static final String GIT_INDEX_KEY = "GIT_INDEX";
public static final String GIT_INDEX_FILE_KEY = "GIT_INDEX_FILE";
/**
* The environment variable that tells us where objects are stored