|
|
|
|
|
|
|
|
String path = cfg.getString(CONFIG_CORE_SECTION, null, |
|
|
String path = cfg.getString(CONFIG_CORE_SECTION, null, |
|
|
CONFIG_KEY_WORKTREE); |
|
|
CONFIG_KEY_WORKTREE); |
|
|
if (path != null) |
|
|
if (path != null) |
|
|
return safeFS().resolve(getGitDir(), path); |
|
|
|
|
|
|
|
|
return safeFS().resolve(getGitDir(), path).getCanonicalFile(); |
|
|
|
|
|
|
|
|
// If core.bare is set, honor its value. Assume workTree is |
|
|
// If core.bare is set, honor its value. Assume workTree is |
|
|
// the parent directory of the repository. |
|
|
// the parent directory of the repository. |