Skip to content

Commit

Permalink
fix repo path
Browse files Browse the repository at this point in the history
  • Loading branch information
TomK committed Jul 13, 2017
1 parent 3be153b commit 6ddf4da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions lucid-dep.bash
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
#!/bin/bash

echo "setting git ssh command"

git config --global core.sshCommand '/ssh.sh'

git config --list --global
export GIT_SSH="/ssh.sh"

exec dep.bash "$@"
2 changes: 1 addition & 1 deletion ssh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ KEYS_DIR=/workspace/github-keys
SSH_HOST="$1"
SSH_CMD="$2"

REPO_PATH=$(echo "$SSH_CMD" | sed "s/^[^ ]* '\([^']*\)'.*$/\1/")
REPO_PATH=$(echo "$SSH_CMD" | sed "s/^[^ ]* '\([^']*\)'.*$/\1/; s|^/*||")

SHORT_REPO=$(echo "$REPO_PATH" | sed 's/\.git$//; s:/:_:g')
KEY_FILE="$KEYS_DIR/$SHORT_REPO"
Expand Down

0 comments on commit 6ddf4da

Please sign in to comment.