File tree 3 files changed +31
-1
lines changed 3 files changed +31
-1
lines changed Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <loadpath >
3
+ <pathentry path =" " type =" src" />
4
+ <pathentry path =" org.rubypeople.rdt.launching.RUBY_CONTAINER" type =" con" />
5
+ </loadpath >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <projectDescription >
3
+ <name >redmine-gitosis</name >
4
+ <comment ></comment >
5
+ <projects >
6
+ </projects >
7
+ <buildSpec >
8
+ <buildCommand >
9
+ <name >org.rubypeople.rdt.core.rubybuilder</name >
10
+ <arguments >
11
+ </arguments >
12
+ </buildCommand >
13
+ </buildSpec >
14
+ <natures >
15
+ <nature >org.rubypeople.rdt.core.rubynature</nature >
16
+ </natures >
17
+ </projectDescription >
Original file line number Diff line number Diff line change @@ -59,17 +59,25 @@ def self.update_repositories(projects)
59
59
conf . write
60
60
changed = true
61
61
end
62
+
63
+ path = File . join ( GITOSIS_BASE_PATH , "#{ project . identifier } .git" )
64
+ if !File . exist? ( path )
65
+ Dir . mkdir path
66
+ `cd #{ path } ; git --bare init ; chmod o-rwx -R .`
67
+ end
62
68
end
63
69
if changed
64
70
# add, commit, push, and remove local tmp dir
65
71
`cd #{ File . join ( local_dir , 'gitosis' ) } ; git add keydir/* gitosis.conf`
72
+ `cd #{ File . join ( local_dir , 'gitosis' ) } ; git config user.email '#{ Setting . mail_from } '`
73
+ `cd #{ File . join ( local_dir , 'gitosis' ) } ; git config user.name 'Redmine'`
66
74
`cd #{ File . join ( local_dir , 'gitosis' ) } ; git commit -a -m 'updated by Redmine Gitosis'`
67
75
`cd #{ File . join ( local_dir , 'gitosis' ) } ; git push`
68
76
end
69
77
70
78
# remove local copy
71
79
`rm -Rf #{ local_dir } `
72
-
80
+
73
81
end
74
82
75
83
You can’t perform that action at this time.
0 commit comments