]> Lady’s Gitweb - Gitweb/commit
gitweb: change filename/directory name of snapshots
authorMatthias Lederhofer <redacted>
Thu, 7 Jun 2007 09:27:08 +0000 (11:27 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:11 +0000 (00:07 -0400)
commit0f9cc012834c8652352a463efa7df61203a8148da2e5a4f5f3941f2c5ce85bd9
tree5319fa79404087e53070c1e6a6da8e10f92b06c6a99df0a6f6d308fcb896697c
parent698bead5e416dadb7a716426ebd00fdd31d981bab07b4e5893561b9a3b860710
gitweb: change filename/directory name of snapshots

/.git or .git is removed from the project name and the
basename of the remaining path is used as the beginning of
the filename and as the directory in the archive.

The regexp will actually not strip off /.git or .git if there
wouldn't be anything left after removing it.

Currently the full project name is used as directory in the
archive and the basename is used as filename.  For example a
repository named foo/bar/.git will have a archive named
.git-<version>.* and extract to foo/bar/.git.  With this patch
the file is named bar-<version>.* and extracts to bar.

Signed-off-by: Matthias Lederhofer <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.110916 seconds and 4 git commands to generate.