From fff5a9479dc042e57b34c89c479636e247224a19 Mon Sep 17 00:00:00 2001 From: JiaqiFan42 <69974325+JiaqiFan42@users.noreply.github.com> Date: Fri, 9 Jan 2026 20:38:11 +0800 Subject: [PATCH] Fix command substitution syntax in archive examples Make the command subsititution syntax modern and consistent. (e.g. the example on line 282 already used the "$(...)" syntax. I suppose it's better to make it consistent.) --- book/05-distributed-git/sections/maintaining.asc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/book/05-distributed-git/sections/maintaining.asc b/book/05-distributed-git/sections/maintaining.asc index c377bb68d..8019228e0 100644 --- a/book/05-distributed-git/sections/maintaining.asc +++ b/book/05-distributed-git/sections/maintaining.asc @@ -512,7 +512,7 @@ The command to do this is `git archive`: [source,console] ---- -$ git archive master --prefix='project/' | gzip > `git describe master`.tar.gz +$ git archive master --prefix='project/' | gzip > $(git describe master).tar.gz $ ls *.tar.gz v1.6.2-rc1-20-g8c5b85c.tar.gz ---- @@ -522,7 +522,7 @@ You can also create a zip archive in much the same way, but by passing the `--fo [source,console] ---- -$ git archive master --prefix='project/' --format=zip > `git describe master`.zip +$ git archive master --prefix='project/' --format=zip > $(git describe master).zip ---- You now have a nice tarball and a zip archive of your project release that you can upload to your website or email to people.