From: Jakub Narebski Date: Fri, 08 Jun 2007 11:46:00 GMT Subject: Re: [PATCH] gitweb: change filename/directory name of snapshots Message-ID: In-Reply-To: <7v4pliltuv.fsf@assigned-by-dhcp.cox.net> Junio C Hamano wrote: > Matthias Lederhofer writes: > >> /.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-.* and extract to foo/bar/.git. With this patch >> the file is named bar-.* and extracts to bar. > > Makes sense to me for "foo/bar/.git", but I am not sure if we > would want to do this to "foo/bar.git". Opinions? I'd like to have snapshot called bar-.tar.gz in first case, and bar.git-.tar.gz (without stripping .git) in the second, but I wouldn't protest too much about having bar-.tar.gz also in second case. -- Jakub Narebski Warsaw, Poland ShadeHawk on #git