Skip to content

Commit

Permalink
Stop suggesting that the working directory is git/mercurial/svn/cvs
Browse files Browse the repository at this point in the history
We're using Git SCM now and the error message might be confusing in some cases
  • Loading branch information
dmach committed Aug 28, 2023
1 parent a01e6da commit 6eb9c4b
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions osc/babysitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,6 @@ def run(prg, argv=None):
print(e, file=sys.stderr)
except oscerr.NoWorkingCopy as e:
print(e, file=sys.stderr)
if os.path.isdir('.git'):
print("Current directory looks like git.", file=sys.stderr)
if os.path.isdir('.hg'):
print("Current directory looks like mercurial.", file=sys.stderr)
if os.path.isdir('.svn'):
print("Current directory looks like svn.", file=sys.stderr)
if os.path.isdir('CVS'):
print("Current directory looks like cvs.", file=sys.stderr)
except HTTPError as e:
print('Server returned an error:', e, file=sys.stderr)
if hasattr(e, 'osc_msg'):
Expand Down

0 comments on commit 6eb9c4b

Please sign in to comment.