Skip to content

Commit a750dd7

Browse files
committed
Fix get_store() to throw the exception from git store if .osc directory is not present
1 parent 1813a77 commit a750dd7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

osc/store.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ def get_store(path, check=True, print_warnings=False):
3434
if print_warnings:
3535
git_scm.warn_experimental()
3636
except oscerr.NoWorkingCopy:
37+
if not os.path.exists(os.path.join(path, ".osc")):
38+
raise
3739
pass
3840

3941
if not store:

0 commit comments

Comments
 (0)