Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2019-05-13 04:34:02 +0300
committerJacob Vosmaer <jacob@gitlab.com>2019-05-13 04:34:02 +0300
commitc617df3ceaaa05292d0907c42ce1cdfb894a71f4 (patch)
treec0eec17495a7a00c19629df669b91568a9222f82
parent79e3e78fddc3a4f4e23bd3ba26a8d779d5fd8053 (diff)
Replace grep/sed with awkjv-sketch-snapshot
-rwxr-xr-xgitaly-bundle-create3
1 files changed, 1 insertions, 2 deletions
diff --git a/gitaly-bundle-create b/gitaly-bundle-create
index 6e7ea0c53..e95b0d1cd 100755
--- a/gitaly-bundle-create
+++ b/gitaly-bundle-create
@@ -22,6 +22,5 @@ echo
# stdin; pack data is not read.
awk '/^$/ { exit } /^[^#]/ { print $1 }' |\
git cat-file --batch-check='%(objectname)' |\
- grep -v ' missing$' |\
- sed 's/^/^/'
+ awk '!/ missing$/ { print "^" $1 }'
) | git pack-objects --thin --stdout --non-empty --delta-base-offset