Tim Byrne
79e93e38bc
Fix error when /proc/version is missing
4 years ago
Tim Byrne
45f1d93193
Add test for WSL identification
4 years ago
Ross Smith II
062181be4a
Simplify WSL identification
4 years ago
Tim Byrne
69cde7f83c
Exclude files listed in yadm/encrypt when decrypt is called
...
Previously this would only happen when encrypting.
4 years ago
Tim Byrne
bd68229c57
Use include "venv" instead of "virtualenv"
4 years ago
Tim Byrne
1200d53f62
Add info about changes to YADM_HOOK_FULL_COMMAND
4 years ago
Tim Byrne
02bedd712a
Add example of parsing YADM_HOOK_FULL_COMMAND
4 years ago
Tim Byrne
9a2883985b
Test for escaped values in YADM_HOOK_FULL_COMMAND
4 years ago
Tim Byrne
ccb75b97ea
Escape space in YADM_HOOK_FULL_COMMAND ( #187 )
...
Backslashes are used to escape spaces, tabs, and backslashes. This
allows hooks to identify separate parameters (which are space
delimited).
4 years ago
Tim Byrne
3b820835ab
Test for warnings from man ( #195 )
4 years ago
Tim Byrne
d16f4b134a
Add man to testbed Docker image
4 years ago
Tim Byrne
d5b217f850
Merge pull request #195 from rra/manpage-fix
4 years ago
Tim Byrne
76c82c763e
Improve identification of WSL ( #196 )
...
Ignore case when searching for Microsoft inside /proc/version.
4 years ago
Russ Allbery
45ccf09aa5
Fix leading vim comment
...
Change `."` to `.\"` for a *roff comment. `."` appears to do the
same thing, but only accidentally because it's treated as an unknown
macro and then ignored by default. `man --warnings` will show the
problem:
% man --warnings ./yadm.1 > /dev/null
troff: <standard input>:1: warning: macro '"' not defined
4 years ago
Tim Byrne
04b98a96cb
Ensure all templates are written atomically
...
This takes jonasc's change, and applies it to all template writing. Also
removes the dependency on mktemp, and only moves files if they are
successfully written.
4 years ago
Tim Byrne
3e42bd9f52
Merge pull request #142 from jonasc/master
...
Resolved conflicts, and signed commit from jonasc.
4 years ago
jonasc
a1845c6e8a
Write template result to temporary file and move
...
This prevents problems with programs which watch the file for changes and will
first be presented an empty file.
One such example which will show a notification message about an empty config
file is Alacritty.
By writing to a tempory file and then moving it (atomically?) to the real
location this problem is mitigated.
4 years ago
Tim Byrne
75d2747aa0
Add test for multiple recipients
4 years ago
Tim Byrne
83c0edd9fb
Mention multiple recipients in man page
4 years ago
Tim Byrne
0b22220e3c
Merge pull request #139 from stigtsp/multiple-gpg-recipients
4 years ago
Tim Byrne
d9f68978fa
Add test for quoted os-release
4 years ago
Tim Byrne
4546636336
Merge pull request #194 from rasa/rasa/remove-quotes-from-distro
4 years ago
Tim Byrne
6e444736ab
Tests for encrypt_with_checksums hooks
4 years ago
Tim Byrne
8c6a96545d
Add organization and documentation to hooks collection
5 years ago
Tim Byrne
2af9c3a524
Merge pull request #188 from mzuther/encrypt_with_checksums
5 years ago
Martin Zuther
0009bb350b
get rid of echo
5 years ago
Martin Zuther
499837bd80
apply code review changes
5 years ago
Martin Zuther
9c9a750009
get rid of dependencies (pure bash)
5 years ago
Martin Zuther
45b218d5c1
support encrypted files in "yadm list"
...
* export some helper functions to hooks
5 years ago
Martin Zuther
bd19e31c6e
get rid of dirname
5 years ago
Martin Zuther
3c204119fb
select one of several checksum commands
5 years ago
Martin Zuther
c190333fdf
correctly export array to subscript
...
* fix shellcheck errors and warnings
5 years ago
Martin Zuther
0b79b461a6
change checksum algorithm to SHA-512
...
* SHA-512/256 doesn't seem to be supported on OS X
(see https://ss64.com/osx/shasum.html )
5 years ago
Martin Zuther
e9720fb1c3
add quotes to support spaces in filenames
5 years ago
Martin Zuther
e96345eb87
re-factor hooks
...
* gracefully pass missing dependencies (grep and sed)
5 years ago
Martin Zuther
91266ca8eb
Check encrypted files with SHA-512/256 checksums
5 years ago
Tim Byrne
b4fd9e19c2
Release 2.3.0
...
Update version number and update documentation
* Support git-crypt (#168 )
* Support specifying a command after `yadm enter`
* Expose GIT_WORK_TREE during `yadm enter` (#160 )
* Support GNUPGHOME environment variable (#134 )
* Assert private dirs, only when worktree = $HOME (#171 )
5 years ago
Tim Byrne
ba5829ad48
Confirm exit status for enter w/cmd
5 years ago
Tim Byrne
7ad28c3a97
Set exit status when running a command from `enter`
5 years ago
Tim Byrne
2978c7dd8a
Add git-crypt info to man page
5 years ago
Tim Byrne
787de27b7c
Reorder items in man page
5 years ago
Tim Byrne
d3a2a06184
Support git-crypt ( #168 )
...
Support is inherently provided by `enter`, which now supports a command.
I've added a `git-crypt` command, which is really just an alias
under-the-hood for "enter git-crypt".
5 years ago
Tim Byrne
b9f5fdaafa
Support GNUPGHOME environment variable ( #134 )
5 years ago
Tim Byrne
84a173551e
Only assert private dirs, when worktree = $HOME ( #171 )
5 years ago
Tim Byrne
cc1993dc14
Move logic around assert_private_dirs to be more efficient
5 years ago
Tim Byrne
46105aae47
Set YADM_WORK within configure_paths
5 years ago
Tim Byrne
18e5fcfacc
Only assert private dirs, when worktree = $HOME
5 years ago
Tim Byrne
e7d2406af3
Export GIT_WORK_TREE during `yadm enter` ( #160 )
5 years ago
Tim Byrne
32baf81b56
Support specifying a command after `yadm enter`
5 years ago
Ross Smith II
43ac19398a
Remove quotes from distro name
5 years ago