Diff between 50520b51831aaa5eb0e064a720f10f5bf53b1e9d and 673722c331afe9187901c181750cfb35c47d3acf

Changed Files

File Additions Deletions Status
git/repository.py +8 -0 modified
templates/commits.html +1 -1 modified
templates/overview.html +1 -1 modified

Full Patch

diff --git a/git/repository.py b/git/repository.py
index 2224e99..7c5c113 100644
--- a/git/repository.py
+++ b/git/repository.py
@@ -34,6 +34,14 @@ def get_bare_repos(path):
             }
         )
 
+    repos.sort(
+        # sort by owner (empty last), then by owner name, then by repo name
+        key=lambda repo: (
+            not (repo.get("owner") or "").strip(),
+            (repo.get("owner") or "").lower(),
+            repo["name"].lower(),
+        )
+    )
     return repos
 
 
diff --git a/templates/commits.html b/templates/commits.html
index 933a96e..1723ee0 100644
--- a/templates/commits.html
+++ b/templates/commits.html
@@ -2,7 +2,7 @@
 
 {% block content %}
     <h2>Commits</h2>
-    <table width="100%">
+    <table>
         <thead>
             <tr style="font-weight: bold;">
                 <td>Commit</td>
diff --git a/templates/overview.html b/templates/overview.html
index 6db0064..2a83efb 100644
--- a/templates/overview.html
+++ b/templates/overview.html
@@ -3,7 +3,7 @@
 {% block content %}
 <h2>{{ repo_name }}</h2>
 <h3>Latest commits</h3>
-<table width="100%">
+<table>
         <thead>
             <tr style="font-weight: bold;">
                 <td>Commit</td>