Skip to content
GitLab
Next
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
GitLab FOSS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
GitLab.org
GitLab FOSS
Commits
cd22fdd5
There was a problem fetching the pipeline summary.
Commit
cd22fdd5
authored
8 years ago
by
Lin Jen-Shin
Browse files
Options
Downloads
Patches
Plain Diff
@ref
might not exist
parent
39d83f72
No related branches found
No related tags found
Loading
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/controllers/concerns/creates_commit.rb
+1
-1
1 addition, 1 deletion
app/controllers/concerns/creates_commit.rb
with
1 addition
and
1 deletion
app/controllers/concerns/creates_commit.rb
+
1
−
1
View file @
cd22fdd5
...
...
@@ -4,7 +4,7 @@ module CreatesCommit
def
create_commit
(
service
,
success_path
:,
failure_path
:,
failure_view:
nil
,
success_notice:
nil
)
set_commit_variables
source_branch
=
@ref
if
@repository
.
find_branch
(
@ref
)
source_branch
=
@ref
if
@ref
&&
@repository
.
find_branch
(
@ref
)
commit_params
=
@commit_params
.
merge
(
source_project:
@project
,
source_branch:
source_branch
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment