Skip to content

Commit 8d850b6

Browse files
committed
Merge pull request #89 from mpapo/patch-addindexedbranch
[AddIndexedBranch] fixed: params.branch parameter was ignored
2 parents cf17b22 + 262c1cf commit 8d850b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/gitblit/AddIndexedBranch.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public static void main(String... args) {
9292
config.load();
9393

9494
Set<String> indexedBranches = new LinkedHashSet<String>();
95-
indexedBranches.add(Constants.DEFAULT_BRANCH);
95+
indexedBranches.add(params.branch);
9696

9797
String [] branches = config.getStringList("gitblit", null, "indexBranch");
9898
if (!ArrayUtils.isEmpty(branches)) {

0 commit comments

Comments
 (0)