1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-23 18:52:10 +01:00

Stop suggesting that the working directory is git/mercurial/svn/cvs

We're using Git SCM now and the error message might be confusing in some cases
This commit is contained in:
Daniel Mach 2023-08-28 09:37:11 +02:00
parent a01e6da19c
commit 6eb9c4b186

View File

@ -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'):