Giter Club home page Giter Club logo

passpy's People

Contributors

bfrascher avatar quantifiedcode-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

passpy's Issues

Passpy fails if pass path is a symbolic link or a submodule

In order to have different pass repositories with different teams each of the members of my team has his main password store and imports the teams repositories as links or submodules.

When generating a new key with store.gen_key() the step of adding the change to the git repository fails with the following errors:

  • If it's behind a symbolic link:
...
  File "~/.local/lib/python3.7/site-packages/passpy/util.py", line 92, in initialised_wrapper
    return func(*args, **kwargs)
  File "~/.local/lib/python3.7/site-packages/passpy/util.py", line 66, in trap_wrapper
    return func(*args, **kwargs)
  File "~/.local/lib/python3.7/site-packages/passpy/store.py", line 377, in gen_key
    verbose=self.verbose)
  File "~/.local/lib/python3.7/site-packages/passpy/git.py", line 88, in git_add_path
    repo.git.add(*path)
  File "~/.local/lib/python3.7/site-packages/git/cmd.py", line 542, in <lambda>
    return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
  File "~/.local/lib/python3.7/site-packages/git/cmd.py", line 1005, in _call_process
    return self.execute(call, **exec_kwargs)
  File "~/.local/lib/python3.7/site-packages/git/cmd.py", line 822, in execute
    raise GitCommandError(command, status, stderr_value, stdout_value)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
  cmdline: git add ~/.password-store/team_1/ansible-vault/production.gpg
  stderr: 'fatal: pathspec '~/.password-store/team_1/ansible-vault/production.gpg' is beyond a symbolic link'
  • If it's behind a submodule:
... Same as above ...

git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
  cmdline: git add ~/.password-store/team_1/ansible-vault/production.gpg
  stderr: 'fatal: Pathspec '~/.password-store/team_1/ansible-vault/production.gpg' is in submodule 'team_1''

Issue using PASSWORD_STORE_DIR in windows

I installed passpy using pip on a windows 10 box.
Using qtpass already, a git repository exists in my home C:\users\***\password-store.

I set the variable PASSWORD_STORE_DIR:

set PASSWORD_STORE_DIR=C:\Users\***\password-store

When running passpy I get the following message:

passpy show
Error: . is not in the password store.

When I rename C:\Users\***\password-store to the default C:\Users\***\.password-store (leading dot) passpy can eventually list the content of my repo.

passpy show|wc -l
246

Passpy Version:

pip list|grep pass
passpy           1.0.1

Python Version:

python --version
Python 3.8.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.