Skip to content

Commit 00b9209

Browse files
committed
Updated git-open... Fixing typo
1 parent a62110b commit 00b9209

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.my-scripts/git_open.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ REPO_URL="$(echo "$REPO_URL" | awk -F'[@:]' -v BRANCH="$BRANCH" -v DESTINATION="
5353
5454
gsub("^ *", "");
5555
gsub(" *$", "");
56-
gsub("\.git$", "");
56+
gsub(".git$", "");
5757
5858
if (domain == "bitbucket.org") {
59-
print "https://bitbucket.org/" $0 "/branch/" BRANCH "?dest=" DESTINATION
59+
print "https://bitbucket.org/" $0 "/branch/" BRANCH "?dest=" DESTINATION;
6060
} else if (domain == "github.com") {
61-
print "https://github.com/" $0 "/compare/" DESTINATION "..." BRANCH
62-
} else
63-
print "Unknown domain: " DOMAIN
64-
print "git open will need to be modified to work with this domain"
61+
print "https://github.com/" $0 "/compare/" DESTINATION "..." BRANCH;
62+
} else {
63+
print "Unknown domain: " DOMAIN;
64+
print "git open will need to be modified to work with this domain";
6565
}
6666
}
6767
')"

0 commit comments

Comments
 (0)