about summary refs log tree commit homepage
path: root/lib/PublicInbox/Git.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-03-16 23:02:17 -0800
committerEric Wong <e@80x24.org>2021-03-17 19:03:14 +0000
commit081918279573b209c27a91e443c37df597bcd43f (patch)
tree5eb589854d7739665721bf60141d820f68f8cbfa /lib/PublicInbox/Git.pm
parenta5968dc059f655a9ac62f1b8bf0bed2b90080b02 (diff)
downloadpublic-inbox-081918279573b209c27a91e443c37df597bcd43f.tar.gz
By adding "+code" next to "mirror" at the top next to the search
box.  Instead of showing "/path/to/$FOO", showing "$FOO.git"
makes it more obvious we're talking about a git repo, here,
instead of some random directory.
Diffstat (limited to 'lib/PublicInbox/Git.pm')
-rw-r--r--lib/PublicInbox/Git.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Git.pm b/lib/PublicInbox/Git.pm
index f680eb2f..2ae5eff9 100644
--- a/lib/PublicInbox/Git.pm
+++ b/lib/PublicInbox/Git.pm
@@ -427,7 +427,7 @@ sub local_nick ($) {
         my $ret = '???';
         # don't show full FS path, basename should be OK:
         if ($self->{git_dir} =~ m!/([^/]+)(?:/\.git)?\z!) {
-                $ret = "/path/to/$1";
+                $ret = "$1.git";
         }
         wantarray ? ($ret) : $ret;
 }