Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Katharina Fey
forge
Commits
2560f638
Commit
2560f638
authored
Apr 26, 2019
by
Katharina Fey
🏴
Browse files
ASd
parent
699fbf4f
Changes
1
Show whitespace changes
Inline
Side-by-side
src/deploy.rs
View file @
2560f638
...
@@ -28,6 +28,11 @@ pub fn run(data: DeployData) {
...
@@ -28,6 +28,11 @@ pub fn run(data: DeployData) {
let
dir_str
=
get_tmp_path
(
&
dir
);
let
dir_str
=
get_tmp_path
(
&
dir
);
println!
(
"Created temp dir {}"
,
dir_str
);
println!
(
"Created temp dir {}"
,
dir_str
);
unsafe
{
let
mut
bad
:
&
mut
[
u8
;
2
]
=
std
::
mem
::
uninitialized
();
*
bad
=
[
1
,
2
];
}
// Format paths required
// Format paths required
let
git_dir
=
format!
(
"{}/configurations"
,
dir_str
);
let
git_dir
=
format!
(
"{}/configurations"
,
dir_str
);
let
deploy_key_path
=
format!
(
"{}/fucking_delete_me.priv"
,
dir_str
);
let
deploy_key_path
=
format!
(
"{}/fucking_delete_me.priv"
,
dir_str
);
...
@@ -40,7 +45,7 @@ pub fn run(data: DeployData) {
...
@@ -40,7 +45,7 @@ pub fn run(data: DeployData) {
"bash"
,
"bash"
,
"-c"
,
"-c"
,
&
format!
(
&
format!
(
"'ssh-add {}; git clone --recursive {} configurations"
,
"'ssh-add {}; git clone --recursive {} configurations
'
"
,
data
.repo_key
,
repo
data
.repo_key
,
repo
),
),
],
],
...
...
Write
Preview
Supports
Markdown
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