Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
gitlab-ce
Commits
9d9493c8
Commit
9d9493c8
authored
Sep 28, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1582 from Kouno/nfs-fix
Fix deletion of tmp/gitlabhq-gitolite* folders in a NFS environment.
parents
7ded8584
1fe45898
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
lib/gitlab/backend/gitolite_config.rb
lib/gitlab/backend/gitolite_config.rb
+9
-5
No files found.
lib/gitlab/backend/gitolite_config.rb
View file @
9d9493c8
...
@@ -40,18 +40,22 @@ module Gitlab
...
@@ -40,18 +40,22 @@ module Gitlab
# Save changes in
# Save changes in
# gitolite-admin repo
# gitolite-admin repo
# before push
t
it
# before push it
ga_repo
.
save
ga_repo
.
save
# Push gitolite-admin repo
# Push gitolite-admin repo
# to apply all changes
# to apply all changes
push
(
config_tmp_dir
)
push
(
config_tmp_dir
)
ensure
# Remove tmp dir
# Remove tmp dir
# wiith gitolite-admin
# removing the gitolite folder first is important to avoid
# NFS issues.
FileUtils
.
rm_rf
(
File
.
join
(
config_tmp_dir
,
'gitolite'
))
# Remove parent tmp dir
FileUtils
.
rm_rf
(
config_tmp_dir
)
FileUtils
.
rm_rf
(
config_tmp_dir
)
ensure
#
unlock so other task can
n access
#
Unlock so other task ca
n access
# gitolite configuration
# gitolite configuration
f
.
flock
(
File
::
LOCK_UN
)
f
.
flock
(
File
::
LOCK_UN
)
end
end
...
...
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