summaryrefslogtreecommitdiff
path: root/contrib/importers/revelation2pass.py
diff options
context:
space:
mode:
authorMartin F. Krafft <madduck@madduck.net>2019-08-14 10:26:55 +1200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-11-28 12:18:25 +0100
commit88936b11aff49e48f79842e4628c55620e0ad736 (patch)
tree02fb1e2df84004caf5c2fd10d1dc4d360ed569c1 /contrib/importers/revelation2pass.py
parentb830119762416fa8706e479e9b01f2453d6f6ad6 (diff)
downloadpass-88936b11aff49e48f79842e4628c55620e0ad736.tar.gz
pass-88936b11aff49e48f79842e4628c55620e0ad736.tar.bz2
pass-88936b11aff49e48f79842e4628c55620e0ad736.zip
Unset variables messing with Git use
This patch makes sure that variables from the environment cannot override e.g. the Git directory to operate on, as well as other critical parts of Git operations. These variables are: - GIT_DIR - GIT_WORK_TREE - GIT_NAMESPACE - GIT_INDEX_FILE - GIT_INDEX_VERSION - GIT_OBJECT_DIRECTORY - GIT_COMMON_DIR If any of those are set, pass might end up operating on another repository, and things would break. I caught this having GIT_DIR set, but fortunately the other repository had a .gitignore that would have ignored the file: ``` fishbowl~% echo $GIT_DIR /home/madduck/.config/vcsh/repo.d/zsh.git fishbowl~% pass generate test The following paths are ignored by one of your .gitignore files: .password-store/test.gpg Use -f if you really want to add them. The generated password for test is: … ``` The result was an orphan file `test.gpg` in the password-store root. Signed-off-by: Martin F. Krafft <madduck@madduck.net>
Diffstat (limited to 'contrib/importers/revelation2pass.py')
0 files changed, 0 insertions, 0 deletions
amp;follow=1'>Removed the 'translatable' attribute from 'gtk-*' stringsRené 'Necoro' Neumann5-11/+11 2009-08-31Removed TODO. Renamed ChangeLog to TODORené 'Necoro' Neumann2-40/+0 2009-08-27Only import stuff if necessaryRené 'Necoro' Neumann1-8/+8 2009-08-25Release the threadQueue-Lock in syncv0.13René 'Necoro' Neumann1-0/+1 2009-08-25Updated portugese translationAlberto Federman Neto1-650/+687 2009-08-15Update spanish translationDaniel Halens1-245/+258 2009-08-15Use boolean flags instead of obscure C flags for ipc.MessageQueueRené 'Necoro' Neumann3-13/+15 2009-08-15TypoRené 'Necoro' Neumann1-1/+1 2009-08-15Enhanced the extensions.shRené 'Necoro' Neumann1-3/+8 2009-08-15Move eix-format to correct locationRené 'Necoro' Neumann1-0/+0