diff options
author | James Moger <james.moger@gitblit.com> | 2012-10-02 17:23:16 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2012-10-02 17:23:16 -0400 |
commit | 1f52c8b5f123b97fc631465479bc2855c12b9ee3 (patch) | |
tree | 6525cf8ffbfebf0a724eb516660180ab021d79c0 /src/com/gitblit/models | |
parent | 9bdf88df00e9abf99442e14a33ed6215b32026b6 (diff) | |
download | gitblit-1f52c8b5f123b97fc631465479bc2855c12b9ee3.tar.gz gitblit-1f52c8b5f123b97fc631465479bc2855c12b9ee3.zip |
Moved the fork mechanism from a javascript link to a separate page
Diffstat (limited to 'src/com/gitblit/models')
-rw-r--r-- | src/com/gitblit/models/RepositoryModel.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/gitblit/models/RepositoryModel.java b/src/com/gitblit/models/RepositoryModel.java index 44aba1d8..3148b5b4 100644 --- a/src/com/gitblit/models/RepositoryModel.java +++ b/src/com/gitblit/models/RepositoryModel.java @@ -145,7 +145,10 @@ public class RepositoryModel implements Serializable, Comparable<RepositoryModel public RepositoryModel cloneAs(String cloneName) {
RepositoryModel clone = new RepositoryModel();
+ clone.originRepository = name;
clone.name = cloneName;
+ clone.projectPath = StringUtils.getFirstPathElement(cloneName);
+ clone.isBare = true;
clone.description = description;
clone.accessRestriction = accessRestriction;
clone.authorizationControl = authorizationControl;
|