Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Testsuite Server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Feneas
federation
Testsuite Server
Commits
f69d2e13
Commit
f69d2e13
authored
Mar 20, 2018
by
zauberstuhl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not update secret if repo record exists
parent
c29f7902
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
repo.go
repo.go
+1
-0
No files found.
repo.go
View file @
f69d2e13
...
...
@@ -65,6 +65,7 @@ func (repo *Repo) CreateOrUpdate() error {
// NOTE you have to specify opt_in as extra update field
// since gorm will not update if bool is false
// see http://gorm.io/docs/update.html
repo
.
Secret
=
""
// set to default then it won't update
err
=
db
.
Model
(
repo
)
.
Where
(
"id = ?"
,
oldRecord
.
ID
)
.
Update
(
repo
)
.
Update
(
"opt_in"
,
repo
.
OptIn
)
.
Error
if
err
!=
nil
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment