Skip to content

Commit 94496fd

Browse files
author
Sameer Naik
authored
Merge pull request #2318 from sameersbn/fix-8311b1
functions: properly delete the bitbucket auth config when not in use
2 parents ebcd5ba + adf79a6 commit 94496fd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

assets/runtime/config/gitlabhq/gitlab.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@ production: &base
929929
- { name: 'bitbucket',
930930
app_id: '{{OAUTH_BITBUCKET_API_KEY}}',
931931
app_secret: '{{OAUTH_BITBUCKET_APP_SECRET}}',
932-
url: '{{OAUTH_BITBUCKET_URL}}'}
932+
url: '{{OAUTH_BITBUCKET_URL}}' }
933933
- { name: 'gitlab',
934934
label: 'GitLab.com',
935935
app_id: '{{OAUTH_GITLAB_API_KEY}}',

assets/runtime/functions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ gitlab_configure_oauth_bitbucket() {
556556
OAUTH_BITBUCKET_APP_SECRET \
557557
OAUTH_BITBUCKET_URL
558558
else
559-
exec_as_git sed -i "/name: 'bitbucket'/,/{{OAUTH_BITBUCKET_APP_SECRET}}/d" ${GITLAB_CONFIG}
559+
exec_as_git sed -i "/name: 'bitbucket'/,/{{OAUTH_BITBUCKET_URL}}/d" ${GITLAB_CONFIG}
560560
fi
561561
}
562562

0 commit comments

Comments
 (0)