瀏覽代碼

Added branches to git overview on system tab

pull/194/head
Johannes 7 年之前
父節點
當前提交
37068ca432
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. +4
    -0
      modules/system/endpoints.py

+ 4
- 0
modules/system/endpoints.py 查看文件

@@ -61,6 +61,10 @@ class SystemView(FlaskView):
for t in repo.tags:
tags.append({"name": t.name, "commit": str(t.commit), "date": t.commit.committed_date,
"committer": t.commit.committer.name, "message": t.commit.message})
for b in repo.branches:
tags.append({"name": b.name, "commit": str(b.commit), "date": b.commit.committed_date,
"committer": b.commit.committer.name, "message": b.commit.message})
try:
branch_name = repo.active_branch.name
# test1


Loading…
取消
儲存