Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception caused by empty files #33

Open
jansel opened this issue Jan 31, 2017 · 0 comments
Open

Exception caused by empty files #33

jansel opened this issue Jan 31, 2017 · 0 comments

Comments

@jansel
Copy link
Collaborator

jansel commented Jan 31, 2017

If you try to commit an empty file, you get the following error:

Traceback (most recent call last):
  File "/home/jansel/testrepo/venv/bin/git-bigstore", line 87, in <module>
    args = parser.parse_args()
  File "/usr/lib/python2.7/argparse.py", line 1701, in parse_args
    args, argv = self.parse_known_args(args, namespace)
  File "/usr/lib/python2.7/argparse.py", line 1733, in parse_known_args
    namespace, args = self._parse_known_args(args, namespace)
  File "/usr/lib/python2.7/argparse.py", line 1942, in _parse_known_args
    stop_index = consume_positionals(start_index)
  File "/usr/lib/python2.7/argparse.py", line 1898, in consume_positionals
    take_action(action, args)
  File "/usr/lib/python2.7/argparse.py", line 1807, in take_action
    action(self, namespace, argument_values, option_string)
  File "/usr/lib/python2.7/argparse.py", line 1096, in __call__
    subnamespace, arg_strings = parser.parse_known_args(arg_strings, None)
  File "/usr/lib/python2.7/argparse.py", line 1733, in parse_known_args
    namespace, args = self._parse_known_args(args, namespace)
  File "/usr/lib/python2.7/argparse.py", line 1942, in _parse_known_args
    stop_index = consume_positionals(start_index)
  File "/usr/lib/python2.7/argparse.py", line 1898, in consume_positionals
    take_action(action, args)
  File "/usr/lib/python2.7/argparse.py", line 1807, in take_action
    action(self, namespace, argument_values, option_string)
  File "/home/jansel/testrepo/venv/bin/git-bigstore", line 45, in __call__
    filter_clean()
  File "/home/jansel/testrepo/venv/local/lib/python2.7/site-packages/bigstore/bigstore.py", line 331, in filter_clean
    firstline = sys.stdin.next()
StopIteration
error: external filter git-bigstore filter-clean failed 1
error: external filter git-bigstore filter-clean failed
@dlo dlo added the bug label Jan 31, 2017
@dlo dlo added the help wanted label Feb 1, 2018
@dlo dlo added this to the Next Release milestone Mar 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants