BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
2bbdeb91
Commit
2bbdeb91
authored
Oct 27, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reset memoized project repository when path changes
parent
740feeec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
project.rb
app/models/project.rb
+1
-0
edit.html.haml
app/views/projects/edit.html.haml
+2
-2
No files found.
app/models/project.rb
View file @
2bbdeb91
...
...
@@ -647,6 +647,7 @@ class Project < ActiveRecord::Base
gitlab_shell
.
mv_repository
(
"
#{
old_path_with_namespace
}
.wiki"
,
"
#{
new_path_with_namespace
}
.wiki"
)
send_move_instructions
(
old_path_with_namespace
)
reset_events_cache
@repository
=
nil
rescue
# Returning false does not rollback after_* transaction but gives
# us information about failing some of tasks
...
...
app/views/projects/edit.html.haml
View file @
2bbdeb91
...
...
@@ -24,10 +24,10 @@
.col-sm-10
=
f
.
text_area
:description
,
placeholder:
"Awesome project"
,
class:
"form-control"
,
rows:
3
,
maxlength:
250
-
if
@project
.
repository
.
exists?
&&
@project
.
repository
.
branch_names
.
any
?
-
unless
@project
.
empty_repo
?
.form-group
=
f
.
label
:default_branch
,
"Default Branch"
,
class:
'control-label'
.col-sm-10
=
f
.
select
(
:default_branch
,
@repository
.
branch_names
,
{},
{
class:
'select2 select-wide'
})
.col-sm-10
=
f
.
select
(
:default_branch
,
@
project
.
repository
.
branch_names
,
{},
{
class:
'select2 select-wide'
})
=
render
'shared/visibility_level'
,
f:
f
,
visibility_level:
@project
.
visibility_level
,
can_change_visibility_level:
can_change_visibility_level?
(
@project
,
current_user
),
form_model:
@project
...
...
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