Commit Graph

66 Commits

Author SHA1 Message Date
Josh Rabinowitz
e16d505e78
Issue 493 linux deps2 (#519)
* add dependencies for rpm, deb, apk packages
* update to CHANGELOG
2019-08-21 17:39:39 -04:00
Josh Rabinowitz
baf6c4113b
Add SECRETS_PINENTRY env var and docs (#490)
* Add SECRETS_PINENTRY env var 

* add docs and tests for SECRETS_PINENTRY

* improve diagnostic output

* fix regex example for bats-core diagnostics
2019-08-16 16:53:57 -04:00
Josh Rabinowitz
10fa2a7be2
Tempfile and temp directory cleanups (#473)
* Tempfile and temp directory cleanups
    Add comments about mktemp on different platforms
    Be more careful about tempfile cleanups
    Don't use find to locate files to cleanup
    Use shorter SECRETS_EXTENSION and SECRETS_DIR env settings in tests
    Set TMPDIR in tests again
    Show DESTDIR used when testing git-secret install
    Change filename passed to mktemp -t in tests
2019-05-21 12:06:51 -04:00
Josh Rabinowitz
2341d1433b
Temp dir fixes (#449)
* perform our test install into TMPDIR
* fix typo
* remove duplicate entry in CHANGELOG.md
* improve commenting
2019-03-29 18:11:52 -04:00
Josh Rabinowitz
fc85d05fc0
Use /tmp/subdir for testing, not /tmp. (#442) 2019-03-27 01:10:07 -04:00
Josh Rabinowitz
07af0c19b6
Varnames output and typos (#441)
* rename variable, fix typo, improve comments and output
* fix directory removal after testing
* mention improved user messaging in CHANGELOG.md
2019-03-23 19:48:08 -04:00
Jonas Karlsson
54f74ede6a Fix for windows (#375)
* add test for travis-ci windows support
* Make 'ps' command options platform specific *nix/windows
* Add _clean_path for windows,  apply to all homedir input arguments
* export GITSECRET_DIST="windows" in git hook if running windows
* Bash lint fixes
2019-03-09 18:49:45 -05:00
Josh Rabinowitz
22fe1ed2d4
Add support for SECRETS_VERBOSE env var (#393)
* Support SECRETS_VERBOSE env var in addition to -v
* don't use --quiet when decrypting in verbose mode
* show output of gpg encryption in verbose mode
* add tests for SECRETS_VERBOSE env var set to 0 and 1
* update changelog, reorder entries.
* add tests for 'cat' and 'hide' with SECRETS_VERBOSE=1
2019-03-07 17:46:51 -05:00
Josh Rabinowitz
7b06b25c0a
Respect secrets dir on init, and document (#366)
* respect SECRETS_DIR and SECRETS_EXTENSION in tests
* add line regarding fixes to CHANGELOG.md
* test with non-standard SECRETS_EXTENSION
* Add details about init, mention SECRETS_EXTENSION in init page
* update git-secret-init man page
2019-03-05 08:41:13 -05:00
Josh Rabinowitz
3dfc4d4fff
use '--all' with 'git add' as per git messages (#354) 2019-02-18 10:30:17 -05:00
Josh Rabinowitz
a9599cc56b
remove temp dir, fix typo (#356)
Closes #347
2019-02-11 16:33:59 -05:00
Josh Rabinowitz
5a28744c5d
Fix for tests under bats, fix typos, mention #334 (#342)
* fix test under githooks, fix typos, mention #334 as relevant
2019-02-10 16:44:21 -05:00
Josh Rabinowitz
6251fae396 support FreeBSD (#260)
* start FreeBSD support

* permissions change

* improve command to fetch permissions.

* note we use 'shasum' and not 'sha256sum' on osx and freebsd
2018-09-22 23:08:21 +03:00
joshr
4e35af2fce set non-default SECRETS_DIR 2018-08-25 10:12:48 -04:00
joshr
d670178150 export SECRETS_DIR to default value 2018-08-25 10:05:17 -04:00
joshr
d3e120e9a6 set SECRETS_DIR env var to non-default value 2018-08-25 08:16:54 -04:00
joshr
f2eec71995 corrected comment about how to output diagnostic messages 2018-07-14 19:28:05 -04:00
joshr
9906dfb33f show any diagnostics that might come out of bats tests.
also adds comment about diagnostic messages in bats.
2018-07-14 15:23:39 -04:00
joshr
b6c1b4a695 test in a dir with spaces 2018-06-30 16:33:07 -04:00
joshr
71d503009a run in a dir without spaces 2018-06-30 16:11:19 -04:00
joshr
adc522a9d3 allow spaces in path
for issue #135, regarding spaces in pathnames
2018-06-30 15:38:46 -04:00
Josh Rabinowitz
bfa3015394
Revert "migrate from bats to bats-core " 2018-06-12 11:24:47 -04:00
joshr
84f9605519 use bats-core 2018-06-09 08:15:32 -04:00
Josh Rabinowitz
b626faf472 typos fixed 2018-04-16 11:05:50 -04:00
Josh Rabinowitz
c2936bf8f3 remove extra newline 2018-04-14 08:50:32 -04:00
Josh Rabinowitz
6dc50652c8 fixes for linter errors about 'which'
For example:

    in utils/deb/deb-ci.sh line 27: 'which git-secret':
    SC2230: which is non-standard. Use builtin 'command -v' instead.
2018-04-13 21:00:31 -04:00
Carlos Hernandez
612191373c
fix shellcheck error 2017-11-27 14:01:37 -07:00
Carlos Hernandez
c2abe0e5eb Fixing SC1117 issues with deploy scripts 2017-11-27 09:50:38 -07:00
nictrix
9a58cce1c4
revert comment out when testing something 2017-11-10 14:51:33 -07:00
nictrix
3aa3353fb7
fix shellcheck lint error 2017-11-10 12:42:25 -07:00
nictrix
52dd244a73
add integration tests for alpine
adds a docker file for integration tests
update integration framework and tests to include alpine
update makefile to include apk builds for alpine
update build utils to include apk compatibility
changed a couple switch lines to be compatible with alpine
adds travis tests
2017-11-10 11:31:22 -07:00
sobolevn
12d4b9f6de
Adds new release process.
Changes:
1. Removed any reference of `staging` branch from docs
2. Refactored `hooks` to work with master

Closes #76
2017-03-27 21:51:33 +03:00
sobolevn
9d0a2ac1c1
Adds fixes to subdirectories bug.
Changes:
1. Fixes #86, now all variables are accessed as functions
2. Fixes #85, now these use cases are working correctly
3. Fixes #83, now init works relative to `.git` folder
4. Closes #77, zsh-plugin is deprecated
5. Refs #53, done some refactoring to tests
6. Closes #82, added additional information to pull-request template
7. Refs #22, plugins are deprecated
8. Also made a lot of improvments into both code and tests
2017-03-06 00:46:49 +03:00
sobolevn
728371912e
Version 0.2.2 pre-release
There are a lot of changes, multiple things were refactored: tests,
some commands, building and meta.

Several critical bugs fixed.

Changes:
1. Fixed #74, when `_user_required` was not working after reimporting keys
2. Closes #73, now it is possible to provide multiple emails to the `killperson` command
3. Closes #72, now it is possible to provide multiple emails to the `tell` command
4. Closes #71, now every doc in this project refer to `git-secret.io` instead of old `gh-pages` website
5. Closes #70, now installation section is removed from main `man` file
6. Closes #69, now "See also" section in the `man`s are clickable
7. Closes #61, added "Manual" section to the manuals
8. Refs #38, added `centos` Dockerfile, but `ci` testing is still failing
9. Refs #52, tests are refactored. Added `clean` command tests, removed a lot of hardcoded things, moved tests execution from `./temp` folder to `/tmp`, added a lot of new check in old tests, and some new test cases
10. Refactored `hide` and `clean` commands to be shorter
11. `shellcheck` is now supported with `make lint`

Additional features are not comming to 0.2.2 after this commit.
2017-02-26 18:10:51 +03:00
sobolevn
941e0ca9b7
Changing deb distribution name 2016-08-20 14:29:36 +03:00
sobolevn
1e748a3c54
CONTRIBUTING.md added 2016-07-02 16:18:53 +03:00
sobolevn
db0f2e1940
fixed shellcheck issues 2016-07-02 13:30:49 +03:00
sobolevn
c83f41e6e2
refactored all utils and src 2016-07-02 13:24:32 +03:00
sobolevn
fab0b9b1f0
fixes in finding functions, also test-make-ci added $PATH 2016-07-02 12:59:55 +03:00
sobolevn
6ea5fabf53
removed source build-utils from make-ci 2016-07-02 12:46:54 +03:00
sobolevn
f5e40fefe0
added make distribution, updated travis and docker files 2016-07-02 12:32:07 +03:00
sobolevn
cce852ca2d
Added uninstall target to the Makefile.
Removed `man/dest` folder, since it was an error.
2016-06-29 00:00:15 +03:00
sobolevn
8b1a01f1f6
This commit is pretty large. A lot of changes.
The full list of changes:
1. Added `.docker/` folder with Dockerfiles
2. Now `travis` runs integrational tests inside these containers
3. Now `travis` runs tests with `mac os x`
4. Now there are new ways to autodeploy `deb` and `rpm` packages
5. Fixed some issues
6. Also added `.ci/` folder, where utility scripts for travis are stored
7. Moved `git-hooks` into the separate folder: `utils/hooks/`
8. Added new target to the `Makefile`
9. `.gitignore` is updated to ignore `build/` folder and inner files
2016-06-16 22:34:25 +03:00
Ferry Boender
fdf24baf57 build-deb target: Create man dirs with execute permissions 2016-06-06 11:55:33 +02:00
sobolevn
21f8b480b4 changed post-commit hook to build mans only in master 2016-05-29 13:59:39 +03:00
sobolevn
3577c165ec Added -i flag to the git-secret-add command, which now auto-ignores unignored files.
Also added a test case for this feature.
Other changes:
1. refactored `Makefile` to have `.PHONY` marks
2. added install target to the `Makefile`, now one can run `make install` (with optional `$PREFIX` variable)
3. updated docs for `git-secret.7`, `git-secret-add.1`
4. refactored some commands to `shift` arguments
5. added a test case to the 'other-file-extension' situation
5. added `.github` folder to store templates

Closed #18
2016-05-14 14:03:33 +03:00
mail@sobolevn.me
38983de6ee staging 2016-03-13 14:09:47 +03:00
mail@sobolevn.me
1904ebdb86 pre-staging 2016-03-13 14:07:30 +03:00
mail@sobolevn.me
874a4468d7 release 2016-03-13 13:27:36 +03:00
sobolevn
255c948755 release 2016-03-13 13:19:31 +03:00