|
|
|
|
|
|
|
|
|
|
|
|
|
|
// LocalCopyPath returns the local repository copy path |
|
|
// LocalCopyPath returns the local repository copy path |
|
|
func (repo *Repository) LocalCopyPath() string { |
|
|
func (repo *Repository) LocalCopyPath() string { |
|
|
return path.Join(setting.AppDataPath, "tmp/local-rpeo", com.ToStr(repo.ID)) |
|
|
|
|
|
|
|
|
return path.Join(setting.AppDataPath, "tmp/local-repo", com.ToStr(repo.ID)) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// UpdateLocalCopyBranch pulls latest changes of given branch from repoPath to localPath. |
|
|
// UpdateLocalCopyBranch pulls latest changes of given branch from repoPath to localPath. |