summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-04-11 17:09:53 -0400
committerDrew DeVault <sir@cmpwn.com>2019-04-11 17:09:53 -0400
commita24377e3d5f4e08a1350ba7d3995c222c27f4698 (patch)
tree1aac583652a770c74320c27a14323f1189b7202c
parent496ddfbb7cb1dd6ac859ba4fa8d8d81359b92f9d (diff)
Support absolute clone paths for ssh:// clones
-rwxr-xr-xgitsrht-shell3
1 files changed, 1 insertions, 2 deletions
diff --git a/gitsrht-shell b/gitsrht-shell
index 52706d5..b75117f 100755
--- a/gitsrht-shell
+++ b/gitsrht-shell
@@ -52,8 +52,7 @@ if len(cmd) < 1 or not cmd[0] in valid_commands:
os.chdir(repos)
path = os.path.abspath(cmd[-1])
if not path.startswith(repos):
- sys.stderr.write("Access denied")
- sys.exit(128)
+ path = os.path.join(repos, path)
cmd[-1] = path
repo = Repository.query.filter(Repository.path == path).first()