Skip to content

Commit

Permalink
Merge pull request #11 from aprajshekhar/ap_CCS-4343_check_503
Browse files Browse the repository at this point in the history
CCS-4343: Regression: Git import does not identify a wrong URL anymore.
  • Loading branch information
aprajshekhar authored Apr 7, 2021
2 parents 2fd0b96 + e493749 commit d97a682
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git2pantheon/api/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def push_repo():
data = get_request_data()
repo = create_repo_object(data)
if not GitHelper.validate_git_url(repo.repo):
raise ApiError(message="Error in cloning the repo", status_code=503,
raise ApiError(message="Error in cloning the repo", status_code=400,
details="Error cloning the repo due to invalid repo URL")
parsed_url = GitHelper.parse_git_url(repo.repo)

Expand Down

0 comments on commit d97a682

Please sign in to comment.