Skip to content

Commit

Permalink
Output full remote path when listing repos
Browse files Browse the repository at this point in the history
  • Loading branch information
leonklingele committed Mar 2, 2017
1 parent f7ba6a7 commit 0148322
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion client/git-simpleserver
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ repo_list() {
local CMD="repo-list"
local OUT
OUT=$(exec_ssh_cmd "$CMD") || (EXIT_CODE=$? ; echo "$OUT" ; exit $EXIT_CODE)
echo "$OUT"
echo "$OUT" | while read -r LINE; do
echo "$LOGIN:$LINE"
done
}
repo_info() {
set +u
Expand Down
2 changes: 1 addition & 1 deletion server/git-shell-commands/repo-list
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -euf #o pipefail
cd "$REPO_USER_PATH"

OUT=$(find . -type f -name "$FILE_NAME_MARKER" -exec dirname -- '{}' \; | cut -c 3-)
OUT=$(find . -type f -name "$FILE_NAME_MARKER" -exec printf "$GIT_USER/" \; -exec /bin/sh -c "dirname -- '{}' | cut -c 3-" \;)
if [ -z "$OUT" ]; then
echo "No repos found!"
exit 1
Expand Down

0 comments on commit 0148322

Please sign in to comment.