Skip to content

Commit baa9f8a

Browse files
joyeecheungpriyank-p
authored andcommitted
do not require .git at the end
1 parent d0c752c commit baa9f8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/landing_session.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class LandingSession extends Session {
1818
const upstreamHref = runSync('git', [
1919
'config', '--get',
2020
`remote.${upstream}.url`]).trim();
21-
if (!upstreamHref.endsWith(`${owner}/${repo}.git`)) {
21+
if (!new RegExp(`${owner}/${repo}(?:.git)?$`).test(upstreamHref)) {
2222
cli.warn('Remote repository URL does not point to the expected ' +
2323
`repository ${owner}/${repo}`);
2424
}

0 commit comments

Comments
 (0)