Skip to content

Commit d97a682

Browse files
authored
Merge pull request #11 from aprajshekhar/ap_CCS-4343_check_503
CCS-4343: Regression: Git import does not identify a wrong URL anymore.
2 parents 2fd0b96 + e493749 commit d97a682

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git2pantheon/api/upload.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def push_repo():
3131
data = get_request_data()
3232
repo = create_repo_object(data)
3333
if not GitHelper.validate_git_url(repo.repo):
34-
raise ApiError(message="Error in cloning the repo", status_code=503,
34+
raise ApiError(message="Error in cloning the repo", status_code=400,
3535
details="Error cloning the repo due to invalid repo URL")
3636
parsed_url = GitHelper.parse_git_url(repo.repo)
3737

0 commit comments

Comments
 (0)