Commit Graph

140 Commits

Author SHA1 Message Date
joshr
645fc2370e change preserve option from -C to -P 2018-08-18 10:09:58 -04:00
joshr
835fe80d8f set permissions when hiding files. change option to -C. 2018-08-18 09:16:50 -04:00
joshr
84c9502015 Merge branch 'master' into file-perms-172 2018-08-18 08:43:47 -04:00
Luis Rascão
80e4908471 Allow per-command configuration of custom secrets dir (#247)
Typical use case is when you want different people to have access
to some files and other people access to other different files.
2018-08-18 12:59:07 +03:00
joshr
cfdca85469 fixes, use _get_encrypted_filename, show TAP diag output 2018-07-22 23:13:12 -04:00
joshr
d73e1081be cleanup 2018-07-22 22:43:06 -04:00
joshr
a86e6ec552 remove unused code 2018-07-22 22:41:57 -04:00
joshr
505428f837 quoting fixes 2018-07-22 22:41:32 -04:00
joshr
2a1a8cb58b fixes for lint and typo 2018-07-22 21:41:04 -04:00
joshr
fda5a0ad21 fixes and debug for 'reveal -c' option 2018-07-22 21:29:01 -04:00
joshr
ffc50acd6a add os-based versions of get_octal_perms 2018-07-22 21:28:33 -04:00
joshr
2e7d6a12a5 add -c (preserve permission) option to reveal. For #172 2018-07-22 16:13:06 -04:00
Josh Rabinowitz
246825c658
fix for keys with only emails, and no usernames. Closes #227 (#240)
* test and fix for keys with only emails, and no usernames. Closes #227
2018-07-17 12:01:16 -04:00
joshr
5c639cf8e7 fixes for filenames with spaces
_list_all_added_files() now sets 'filenames' var, and
fixed quoting when updating hashes.
2018-07-14 15:19:47 -04:00
joshr
bb2253af8a remove debug code, see #237 2018-07-14 15:19:11 -04:00
joshr
b2f00fd32c fixes for filenames with spaces
quoting improvements, and
_list_all_added_files() now sets a global 'filenames' array.
2018-07-14 15:17:27 -04:00
joshr
826dfeb5d4 remove unneeded code 2018-07-13 08:24:30 -04:00
joshr
a7eaa6013c fix for issue #230, when git-secret is run in subdir of repo 2018-07-12 09:52:19 -04:00
joshr
4b847298ef restore unquoted variable and comment about it. shellcheck tweak. 2018-06-30 16:20:24 -04:00
joshr
65a7118d25 restore small optimizations. quote variable for shellcheck. 2018-06-30 16:00:53 -04:00
joshr
adc522a9d3 allow spaces in path
for issue #135, regarding spaces in pathnames
2018-06-30 15:38:46 -04:00
Simon Massey
1f2fb99a0a
Full stop changed to comma 2018-06-30 15:19:14 +01:00
Josh Rabinowitz
99f2229038 mention 'add' has an option, and that each command has options 2018-06-30 09:54:23 -04:00
Josh Rabinowitz
31e5528fac Clarify that 'git-secret-add' doesn't alter .gitignore by default 2018-06-28 13:14:41 -04:00
Josh Rabinowitz
28377b138c fix typos 2018-06-21 08:21:52 -04:00
Josh Rabinowitz
1552e22a11 more consistent error messages 2018-06-13 14:32:15 -04:00
Josh Rabinowitz
73c81747cc fix indentation 2018-06-13 14:03:30 -04:00
joshr
332aa1f5d5 fix typo 2018-06-12 16:19:50 -04:00
Josh Rabinowitz
ab58461f8e more error checking around decryption 2018-06-12 15:35:33 -04:00
Josh Rabinowitz
b268ddf226 more careful error checking running gpg 2018-06-12 15:27:02 -04:00
joshr
75c5ea168c fix 2018-04-24 08:27:29 -04:00
joshr
5ab26e6707 improve messaging, add comment 2018-04-24 08:24:40 -04:00
joshr
1d32cd0650 check that gpg -n --list-keys reported no error 2018-04-24 08:09:27 -04:00
joshr
4661b725df abort if unable to decrypt hidden file 2018-04-24 07:57:13 -04:00
Josh Rabinowitz
c2081514d6 fixes for git secret changes (#160)
* fixes for git secret changes

check that we can find filenames passed on command line, and that
we can find the unencrypted versions of hidden files.

* new test

* add tests
2018-04-21 18:25:38 +03:00
Josh Rabinowitz
deae0d1cd5 'git secret hide' without source files gives appropriate error (#158)
* don't hide files that don't exist decrypted.

and change related error message to 'file not found: filename'.

* ensure all source files are present before hiding

* test for 'add' while unencrypted file missing
2018-04-18 20:56:54 +03:00
Josh Rabinowitz
52bbc20162
Merge branch 'master' into add-tracked-file-126 2018-04-17 18:09:43 -04:00
joshr
13170c313f check if file is tracked before adding
and tell user useful information in case they want to
hide a file that's tracked.
2018-04-17 18:00:18 -04:00
joshr
ffa89ceaa2 fix 2018-04-17 17:03:43 -04:00
joshr
a78e0172bc check that added files are not tracked by git 2018-04-17 15:53:40 -04:00
Josh Rabinowitz
97fa9e6e7b fix quoting and phrasing 2018-04-17 15:34:19 -04:00
Josh Rabinowitz
114f4c7c6c document git secret --version 2018-04-17 15:27:24 -04:00
joshr
2bc42f2655 mention 'git secret list' not mapping.cfg in usage 2018-04-17 11:18:21 -04:00
joshr
55f2b83320 fix typo 2018-04-17 09:10:44 -04:00
joshr
8b2a1eab1d Merge branch 'master' into improve-docs 2018-04-17 08:42:44 -04:00
joshr
4766df2110 improve error messages
in add, killperson, remove, tell, and main
2018-04-16 22:52:06 -04:00
joshr
0dc00367f9 improve message when .git exists but not .gitsecret 2018-04-16 21:58:32 -04:00
joshr
a4a8ea62ed better error messages 2018-04-16 21:50:28 -04:00
joshr
e7abd660bc improve git secret usage output 2018-04-16 17:42:16 -04:00
Josh Rabinowitz
4a2f34c791 remove commented-out code 2018-04-14 16:37:36 -04:00