aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroot <root@localhost>2013-02-14 00:00:00 +0000
committerroot <root@localhost>2013-02-14 00:00:00 +0000
commit853dae8914f7d74e6cb4bcc155ae565aa1c4d6ba (patch)
tree57048e9b0aed88057115aaf607d8222c2ef6f2ee
parent0a1730741ce55ec6c3ced3fa0f4c713952bbe192 (diff)
downloadgit-remote-gcrypt-853dae8914f7d74e6cb4bcc155ae565aa1c4d6ba.zip
git-remote-gcrypt-853dae8914f7d74e6cb4bcc155ae565aa1c4d6ba.tar.gz
git-remote-gcrypt-853dae8914f7d74e6cb4bcc155ae565aa1c4d6ba.tar.bz2
Use grep instead of sort/uniq
-rwxr-xr-xgit-remote-gcrypt4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-remote-gcrypt b/git-remote-gcrypt
index 909aa25..2b797cd 100755
--- a/git-remote-gcrypt
+++ b/git-remote-gcrypt
@@ -398,8 +398,8 @@ do_fetch()
# Needed packs is Packlist - (phave & Packlist)
# The `+` for $GITCEPTION is pointless but we will be safe for stacking
phave_="$(cat "$Localdir/have_packs+" 2>/dev/null || :)"
- pboth_="$( (xecho "$premote_"; xecho "$phave_") | sort_C | uniq -d)"
- pneed_="$( (xecho "$premote_"; xecho "$pboth_") | sort_C | uniq -u)"
+ pboth_="$(xecho "$premote_" | xgrep -F -x -e "$phave_")"
+ pneed_="$(xecho "$premote_" | xgrep -F -vx -e "$phave_")"
xecho "$pneed_" | while read packline_
do