Skip to content

Commit

Permalink
CCS-4343: Regression: Git import does not identify a wrong URL anymore.
Browse files Browse the repository at this point in the history
  • Loading branch information
aprajshekhar committed Apr 7, 2021
1 parent 2fd0b96 commit e493749
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 e493749

Please sign in to comment.