Skip to content

Commit

Permalink
feat: make .git in repo url optional (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
tanishqmanuja authored Jan 4, 2024
1 parent 99f4ef2 commit 9a46c00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/t
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ if [ $# -ge 1 ]; then # argument provided
exit 1
fi
REPO_URL=$2
if [[ $REPO_URL =~ \/([^\/]+)\.git$ ]]; then
if [[ $REPO_URL =~ \/([^\/]+)(\.git)?$ ]]; then
REPO="${BASH_REMATCH[1]}"
if [[ -z $T_REPOS_DIR ]]; then
echo "T_REPOS_DIR has not been set"
Expand Down

0 comments on commit 9a46c00

Please sign in to comment.