Commit graph

128 commits

Author SHA1 Message Date
root
a50a225ff0 More specific pattern for manifest filter 2012-11-19 22:03:41 +00:00
root
bb03601d73 Use $1, $2 instead of $@ here
If found a bug in mksh, where it would not split "$@" if IFS is null
(reported).
2013-02-01 09:01:36 +04:00
root
786dc939d4 Fixup cleanup at exit 2013-01-14 16:00:07 +06:00
root
2fa9a4a7ef Cleanup use of "quotes" 2013-01-22 17:25:23 -01:00
root
479cbcbe6e Rename main manifest globals for consistency and symmetry 2013-02-07 21:43:41 +06:00
root
971bfcd633 Unify filter_to and its negation, also make it faster by direct append 2013-02-03 23:30:06 +05:00
root
7c45d73f4e Edit wording in README 2013-01-21 17:37:06 -05:00
root
f2a1d6daa6 Code and naming conventions around return variables 2013-01-05 16:22:32 -01:00
root
85211abfc0 Use filter_to for pruning Packlist after repack 2013-01-28 07:44:43 +00:00
root
1d7a760a7e Replace wc -l with line_count 2012-12-17 06:38:26 -09:00
root
100490af1f Use filter_to for key_line 2012-11-22 02:46:46 +01:00
root
1c02c0f6cb Fix checking for multiple keys 2013-01-04 10:40:21 +00:00
root
698bc260c3 Update Branchlist using filter_remove 2012-11-23 20:03:14 +04:00
root
1cbe51f2e1 Introduce filter_to, pick_fields 2012-12-09 11:48:45 +06:00
root
56356a8315 Minicleanup in do_push 2013-02-10 23:06:09 -03:00
root
4d1f2999f1 Use have_packs+ file directly with grep 2012-11-10 13:49:56 +00:00
root
0e8b89f244 Fix bug with goodsig variable 2013-02-08 09:21:21 +00:00
root
5e090e019b read_config: only pick first key for each key id 2013-01-24 17:17:56 +00:00
root
cd90cea0fe Put the main loop for the git protocol in a function 2013-01-06 18:20:39 -07:00
root
2261a5e7af Fix minor coding style and cleanup local variables 2012-11-16 04:57:54 -08:00
root
575b919143 Don't show errors from git fetch when using the git backend 2013-01-22 09:24:36 +02:00
root
fc191d5b3c Use a function for cleanup at exit 2012-12-13 21:02:14 +04:00
root
d85190ef51 README: Fix to use remote id 2012-11-29 07:45:29 +05:00
root
b54768df01 Simplify formatting of the manifest 2012-11-07 07:21:51 +09:00
root
181bf7f38b Use append_to 2012-10-27 22:40:19 -07:00
root
d1fc6292a9 Group modifiable globals together 2013-01-11 11:01:06 +03:00
root
872e82a427 Update license text 2012-11-16 03:47:51 -03:00
root
feca906231 Use set -u (no unset vars) 2012-12-15 13:37:51 +05:00
root
d6d8d565c9 Use return variables for Goodsig and Signers 2012-12-02 00:41:09 -02:00
root
6e90c21c87 Use setvar for return variables 2012-11-22 03:37:24 +08:00
root
2a65af1d20 Update Gref_rbranch when connecting 2012-12-16 09:01:02 +00:00
root
007bfb29de Fix markup of Repository Format section 2013-01-03 16:31:03 +01:00
root
aeb3135bcb Edit README 2013-01-20 19:22:44 +08:00
root
85e65ca48e Organize the README in a neat way, putting extra info in the Notes chapter 2013-02-14 00:00:00 +00:00
root
cc3fd5b985 Edit the summary of the repository format/process 2013-02-14 00:00:00 +00:00
root
b6cd6f7138 Tone down the development version warnings
We have now implemented the usability changes (No fragment in repository
URL, and default encrypt-to-self), so no big changes planned.
2013-02-14 00:00:00 +00:00
root
eb4b324542 Use a shorter, simpler repo ID since users will see it (occasionally) 2013-02-14 00:00:00 +00:00
root
64eb50b695 Automatically forward-port repository config
Change remote configurations when encountered:

* gcrypt::ssh -> gcrypt::rsync
* repo/G.XXXX -> #XXX
* gitception:// -> ""
2013-02-14 00:00:00 +00:00
root
789cb4d7c3 Update README for remote.<name>.gcrypt-participants and default simple mode 2013-02-14 00:00:00 +00:00
root
4f04d2d43b Encrypt to self by default; basic functionality now needs no configuration
Introduces gcrypt.participants "simple" mode which encrypts to self, and
accepts any valid signature by default. No configuration needed for
private repositories.

We also adds  remote.<name>.gcrypt-participants to configure this per
remote.
2013-02-14 00:00:00 +00:00
root
14da0a4d33 Migrate to SHA-256 and implicit repo ID (PARTIAL REPO FORMAT CHANGE)
* local, rsync, ssh, sftp repositories are still compatible
* gitception/git backend repositories are not compatible and need to be
  deleted and recreated
* Put manifest in a static location, so we don't need #fragment in the URL
* Record repository ID for each remote, and warn if it changes.
* Use SHA-256 by default but allow reading SHA-224-identified packfiles
* The URL #fragment identifies branch to use when using the git backend
2013-02-14 00:00:00 +00:00
root
4d28d8fe4d Do not use grep -F (busybox incompatible) 2013-02-14 00:00:00 +00:00
root
402eca0a09 Give warning about future format change 2013-02-14 00:00:00 +00:00
root
5c16aa4bda Allow user to set $GCRYPT_FULL_REPACK to force repack of remote 2013-02-14 00:00:00 +00:00
root
2cac13417a Unify all uses of trap 2013-02-14 00:00:00 +00:00
root
5751a91aef Factor out common code in do_fetch and repack 2013-02-14 00:00:00 +00:00
root
80ac8a61e2 Use normal "url-safe" variant of base64 for repo url fragment 2013-02-14 00:00:00 +00:00
root
677df0e31b Use rsync for both rsync and ssh access 2013-02-14 00:00:00 +00:00
root
68ff0eb7c4 Document the keep field 2013-02-14 00:00:00 +00:00
root
96b7608966 Repack the encrypted remote regularly
Use a simple but slow method of repacking the remote repository.
Download (and verify) all packs not marked 'keep', and repack those into
a new packfile. The new packfile is marked 'keep' with generation 1.
After PUT is called on the manifest, we remove the redundant old
packfiles.

The generation number will allow further iterations of repacking to be
implemented later.
2013-02-14 00:00:00 +00:00