diff options
author | root <root@localhost> | 2013-02-14 00:00:00 +0000 |
---|---|---|
committer | root <root@localhost> | 2013-02-14 00:00:00 +0000 |
commit | 6c203aaa77a3d33715ae9b1d54253f6c2527c293 (patch) | |
tree | bce234fa3bb9af045d5ee796c43a58164b74443e /git-remote-gcrypt | |
parent | c355faebe85ae87a7f8e82e05e2ecc21193a4622 (diff) | |
download | git-remote-gcrypt-6c203aaa77a3d33715ae9b1d54253f6c2527c293.tar.gz |
Add extension namespace in manifest files, 'extn' lines are preserved
Diffstat (limited to 'git-remote-gcrypt')
-rwxr-xr-x | git-remote-gcrypt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/git-remote-gcrypt b/git-remote-gcrypt index 79dd1fc..cee730d 100755 --- a/git-remote-gcrypt +++ b/git-remote-gcrypt @@ -19,6 +19,7 @@ Hashpfx=":SHA224:" UrlTag="G." Packpfx="pack $Hashpfx" Packkey_bytes=33 +Extension_list= # compat/utility functions xecho() @@ -285,6 +286,7 @@ make_new_repo() fix_config=1 } echo_info "Repository URL is" "gcrypt::$URL/$UrlTag$urlid_" + Extension_list=$(xecho "extn comment") isnull "$fix_config" || echo_info "(configuration for $NAME updated)" } @@ -335,6 +337,7 @@ ensure_connected() Branchlist=$(xecho "$manifest_" | xgrep -E '^[0-9a-f]{40} ') Packlist=$(xecho "$manifest_" | xgrep "^$Packpfx") + Extension_list=$(xecho "$manifest_" | xgrep "^extn ") rcv_repoid=$(xecho "$manifest_" | xgrep "^repo ") iseq "$(repoidstr)" "$rcv_repoid" || echo_die "Repository id mismatch!" } @@ -484,7 +487,8 @@ EOF TmpManifest_Enc="$Localdir/manifest.$$" trap 'rm -f "$TmpManifest_Enc"' EXIT - (xecho "$Branchlist"; xecho "$Packlist"; repoidstr) | + (xecho "$Branchlist"; xecho "$Packlist"; + repoidstr; xecho "$Extension_list") | PRIVENCRYPT "$Recipients" > "$TmpManifest_Enc" PUT "$URL" "$Repoid" < "$TmpManifest_Enc" |