]> arthur.barton.de Git - bup.git/commit
check_repo_or_die: don't test via stat "pack/."
authorRob Browning <rlb@defaultvalue.org>
Fri, 16 Dec 2016 17:48:03 +0000 (11:48 -0600)
committerRob Browning <rlb@defaultvalue.org>
Sat, 17 Dec 2016 16:49:14 +0000 (10:49 -0600)
commit2e9f45769f9161d06ce9db7651f4ee9cbe6bc3bd
treee3d7479fec2e0675788aab12204c802002ee7b8b
parent13d8c6b7ae3c399a5436f0aa5928e7ba8d485f0e
check_repo_or_die: don't test via stat "pack/."

Apparently this actually returns valid stat info on OS X now:

  python -c 'import os; print os.stat('plain-file/.')

No idea why, but since check_repo_or_die() currently depends on that
throwing an exception, rewrite it to avoid the problem.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/git.py
lib/bup/helpers.py