Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Resolves issue #24 #27

Closed
wants to merge 1 commit into from

2 participants

@kthakore

Hey so I fixed it. Looks like bitbucket only allows lowercased names for repo.

@nhmood
Owner

Looks good, waiting to merge in #26 and then I can pull this in after. I might take it a step further and lc all of the user inputs for both GitHub and Bitbucket

@nhmood nhmood referenced this pull request from a commit
@nhmood Fixed case for Bitbucket and GitHub access
Addresses #27
Bitbucket requires lowercase for username, repo, owner on calls
Added same to GitHub
ff894d6
@nhmood
Owner

Fixed in ff894d6

@nhmood nhmood closed this
@latk latk referenced this pull request from a commit in latk/watson-perl
@nhmood Fixed case for Bitbucket and GitHub access
Addresses nhmood#27
Bitbucket requires lowercase for username, repo, owner on calls
Added same to GitHub

Conflicts:

	watson
8797e34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 22, 2013
  1. @kthakore

    Resolves issue #24

    kthakore authored
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 1 deletion.
  1. +3 −1 watson
View
4 watson
@@ -1728,8 +1728,10 @@ sub bitbucketSetup {
my $call;
my $response;
+ #bit bucket lowercases repo name. BobSmithRepo = bobsmithrepo
+ my $lcrepo = lc($repo);
$call = "curl -s -i " .
- "https://bitbucket.org/api/1.0/repositories/$owner/$repo " .
+ "https://bitbucket.org/api/1.0/repositories/$owner/$lcrepo " .
"-u $username";
print BOLD;
$response = `$call`;
Something went wrong with that request. Please try again.