Commit Graph

135 Commits

Author SHA1 Message Date
Satoshi Ohki 2140970157 Fixed yadm-alt to work even if whitespaces exist in filepath 2017-01-05 19:52:56 +09:00
Uroš Golja 763146043e Make yadm exit with the return value of git. 2016-12-24 01:12:35 +01:00
Tomas Cernaj 35da3eeb6e Make yadm work with Git for Windows under Cygwin
When using Git for Windows (a.k.a. msysGit) from Cygwin, git stumbles
over paths in Unix notation. Git for Windows only accepts Windows
paths (mixed notation is OK, for example `C:/GITREPO/`). This patch
converts paths passed to and from git to the appropriate notation using
cygpath if yadm is run under Cygwin and Git for Windows is detected.
2016-10-09 22:18:17 +02:00
Tim Byrne 05ed83ea34
Release 1.05
Update version number and update documentation

* Improve portability of shebang line (#14)
* Support for symlinked directories (#17)
* Improve portability of tar parameters (#18)
* Support alternate gpg program (#19)
* Fallback to using `ls` if `/bin/ls` does not exist (#22)
2016-09-08 08:08:22 -05:00
Tim Byrne e40c054805
Use gpg1 (if available) for automated tests
gnupg2 does not support agent-less password input (breaking the
expect-driven tests).
2016-09-07 22:35:36 -05:00
Tim Byrne 13a1395e45
Ignore jekyll-created content 2016-09-07 22:35:05 -05:00
Tim Byrne 60eb4c415f
Fallback to using `ls` if `/bin/ls` does not exist (#22) 2016-08-28 22:06:14 -05:00
Tim Byrne ce0acf1505
Support alternate gpg program (#19) 2016-08-14 23:53:26 -05:00
Tim Byrne e4d1b3a165
Unit tests for alternate gpg program (#19) 2016-08-14 23:53:21 -05:00
Tim Byrne d500ccfbd9
Use `-f -` with tar `-x`, `-c`, and `-t` operations (#18) 2016-08-14 23:53:17 -05:00
Tim Byrne fa286f0c9d
Support for symlinked directories (#17) 2016-08-14 23:53:12 -05:00
Tim Byrne 85abcf981c
Acceptance tests for symlinked directories (#17) 2016-08-14 23:52:54 -05:00
Tim Byrne fea665eb34
Use `#!/bin/sh` for portability (#14) 2016-06-18 10:38:04 -05:00
Tim Byrne bd3ed72ee8
Unset GPG_AGENT_INFO while tests are running 2016-06-08 08:33:47 -05:00
Tim Byrne d55725eafa
Improve portability of shebang line (#14) 2016-06-08 08:13:19 -05:00
Tim Byrne 86bb3be0cb
Merge pull request #13 from esphen/master 2016-05-05 11:33:32 -05:00
Espen Henriksen 2884e41151 Remove gentoo ebuild and update README gentoo instructions 2016-05-05 11:28:16 -05:00
Espen Henriksen 14690cf706 Implement Gentoo bugzilla review feedback 2016-05-05 11:26:44 -05:00
Tim Byrne 3677b3b740 A yadm formula is now part of homebrew-core 2016-04-29 13:49:33 -05:00
Tim Byrne 117691c261 Update SPEC to reference the correct source file 2016-04-27 02:28:46 -05:00
Tim Byrne 7cc4f0afc5 Switch yum repos to Copr (instead of Bintray) 2016-04-27 01:20:19 -05:00
Tim Byrne 75a8b60d89 Update SPEC to comply with Fedora packaging guidelines 2016-04-27 00:36:14 -05:00
Tim Byrne 84f7c8cb88
Merge pull request #10 from esphen/master 2016-04-23 16:34:11 -05:00
Espen Henriksen 18ce904b9e
Use curl for Gentoo install 2016-04-23 20:44:54 +02:00
Espen Henriksen 39d6d16eae
#9 Add gentoo ebuild 2016-04-23 18:30:37 +02:00
Tim Byrne f0a0015209
Release 1.04
Update version number and update documentation

  * Support alternate paths for yadm data (#4, #5)
  * Support asymmetric encryption (#7, #8)
  * Prevent the mixing of output and gpg prompts
2016-04-22 16:33:02 -05:00
Tim Byrne aeb2e5d6c7 Prevent the mixing of output and gpg prompts 2016-04-21 10:00:12 -05:00
Tim Byrne 8bede1cb84 Test for correct error message when public key is missing 2016-04-21 09:10:47 -05:00
Tim Byrne ea3b2ecfa8 Support `yadm.gpg-recipient = ASK` 2016-04-21 08:58:07 -05:00
Tim Byrne 5ad5b2df7e Double quote array expansion 2016-04-21 07:39:04 -05:00
Tim Byrne fbaf5b6cf4 Merge pull request #8 from esphen/master 2016-04-21 07:33:49 -05:00
Tim Byrne 7854275488 Create acceptance tests for asymmetric encryption 2016-04-21 07:13:40 -05:00
Espen Henriksen 33c8cd8a21
#7 Document gpg-recipient 2016-04-19 21:56:00 +02:00
Espen Henriksen 34ae748408
#7 Add support for asymmetric encryption 2016-04-19 21:14:46 +02:00
Tim Byrne b11e26c59a Document new universal options 2016-04-18 17:24:04 -05:00
Tim Byrne ca63fddad0 Add support for path overrides
* `--yadm-repo`
  * `--yadm-config`
  * `--yadm-encrypt`
  * `--yadm-archive`
2016-04-08 17:31:00 -05:00
Tim Byrne 27d0e7baa2 Refactor path tests
Including new path tests for planned features
2016-04-08 17:31:00 -05:00
Tim Byrne 340f88bd52 Use `-n` instead of negating `-z` 2016-04-08 17:31:00 -05:00
Tim Byrne 1f2bd1f57b Configure travis-ci testing
Tests should be viewable at https://travis-ci.org/TheLocehiliosan/yadm
2016-04-07 08:16:22 -05:00
Tim Byrne f48dea6879 Resolve shellcheck errors in bats tests 2016-04-07 08:16:22 -05:00
Tim Byrne b662b31cd4 Resolve shellcheck errors in yadm 2016-04-07 08:16:22 -05:00
Tim Byrne b3209de4dc Add shellcheck tests 2016-04-07 08:16:13 -05:00
Tim Byrne d2cd3b1b26 Add tests
Tests will be run using `bats`.
2016-04-07 08:14:13 -05:00
Tim Byrne bbec7dd540 Handle errors during `git fetch origin` 2016-03-30 03:31:55 -05:00
Tim Byrne 301b537f15 Disable function calls if `YADM_TEST=1`
This is to allow loading the functions only during tests.
2016-03-23 19:16:21 -05:00
Tim Byrne 6918e1b7df Fix grammar 2016-03-23 19:14:25 -05:00
Tim Byrne 36a3482c8d Explicitly exit zero from main() 2016-03-23 19:13:04 -05:00
Tim Byrne a60ed8b655 Add `-Y`/`--yadm-dir` options
An alternate yadm directory may be specified for every command. This
changes where the repository, configurations, and encrypted files are
located.
2016-03-23 02:48:21 -05:00
Tim Byrne 431f149730 Translate gitconfig to config inside git_command()
This consolidates calls to git_command()
2016-02-13 17:45:47 -06:00
Tim Byrne 4948f1b137 Rebuild CONTRIBUTORS 2016-01-22 13:08:59 -06:00