Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions ide/api/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,6 @@ def set_project_repo(request, project_id):
except:
pass

# Just clear the repo if none specified.
if repo == '':
project.github_repo = None
project.github_branch = None
project.github_last_sync = None
project.github_last_commit = None
project.github_hook_uuid = None
project.save()
return json_response({'exists': True, 'access': True, 'updated': True, 'branch_exists': True})

if not ide.git.git_verify_tokens(request.user):
return json_failure("No GitHub tokens on file.")

Expand Down Expand Up @@ -153,4 +143,4 @@ def remove_hooks(repo, s):
if hook.name != 'web':
continue
if s in hook.config['url']:
hook.delete()
hook.delete()
Loading