diff --git a/bin/git-archive-file b/bin/git-archive-file index bbb4723..0f93421 100755 --- a/bin/git-archive-file +++ b/bin/git-archive-file @@ -24,6 +24,9 @@ else fi fi +# rename invalid chars for the file path +FILENAME=${FILENAME//\//-} +FILENAME=${FILENAME//\\/-} # combine path and filename OUTPUT=$(pwd)/$FILENAME diff --git a/man/git-archive-file.1 b/man/git-archive-file.1 index 6022939..4610b48 100644 --- a/man/git-archive-file.1 +++ b/man/git-archive-file.1 @@ -1,37 +1,27 @@ -.\" generated with Ronn/v0.7.3 -.\" http://github.com/rtomayko/ronn/tree/0.7.3 -. -.TH "GIT\-ARCHIVE\-FILE" "1" "October 2017" "" "Git Extras" -. +.\" generated with Ronn-NG/v0.9.1 +.\" http://github.com/apjanke/ronn-ng/tree/0.9.1 +.TH "GIT\-ARCHIVE\-FILE" "1" "May 2020" "" "Git Extras" .SH "NAME" \fBgit\-archive\-file\fR \- Export the current HEAD of the git repository to an archive -. .SH "SYNOPSIS" \fBgit\-archive\-file\fR -. .SH "DESCRIPTION" Export the current HEAD of the repository into an archive with an identifiable and unique name\. -. .SH "OPTIONS" This command does not take any options\. -. .SH "EXAMPLES" Archive naming conventions: -. .P On any branch: \fBgit\-extras\.1\.7\.0\-110\-gafefba7\.branch\-name\.zip\fR -. .P On master branch: \fBgit\-extras\.1\.7\.0\-110\-gafefba7\.zip\fR -. .P On a detached HEAD (e\.g\. a tag): \fBgit\-extras\.1\.7\.0\.zip\fR -. +.P +The \'/\' and \'\e\' in the branch name will be converted into \'\-\'\. .SH "AUTHOR" Written by Philipp Klose <\fIme@thehippo\.de\fR> -. .SH "REPORTING BUGS" <\fIhttps://github\.com/tj/git\-extras/issues\fR> -. .SH "SEE ALSO" <\fIhttps://github\.com/tj/git\-extras\fR> diff --git a/man/git-archive-file.html b/man/git-archive-file.html index 63ba060..1a53ed8 100644 --- a/man/git-archive-file.html +++ b/man/git-archive-file.html @@ -1,8 +1,8 @@ - - + + git-archive-file(1) - Export the current HEAD of the git repository to an archive