Skip to content

Commit

Permalink
Merge pull request #126 from nci/svndir
Browse files Browse the repository at this point in the history
Create svn auth directory if it doesn't exist
  • Loading branch information
ScottWales authored May 6, 2024
2 parents 367e365 + fa77300 commit d14408e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mosrs-auth
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ def check_password(user, password):
if r.status != 200:
raise Exception(r.status)

# Create the svn auth file
os.makedirs(os.path.expanduser('~/.subversion/auth/svn.simple'), exist_ok=True)
with open(os.path.expanduser(f'~/.subversion/auth/svn.simple/{svn_key}'), 'w') as f:
f.write(textwrap.dedent(f"""\
K 8
Expand Down

0 comments on commit d14408e

Please sign in to comment.