Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sucssite
sso
Commits
e32252e8
Commit
e32252e8
authored
Oct 31, 2019
by
Imran Hussain
Browse files
Add a CD mechanism
parent
b766435d
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/pull.php
0 → 100644
View file @
e32252e8
<?php
exec
(
"cd ..; git reset --hard HEAD; git pull"
,
$retArr
,
$retVal
);
if
(
$retVal
==
0
)
{
print
(
"ok"
);
exit
(
0
);
}
print
(
"not ok
\n
"
);
var_dump
(
$retArr
);
var_dump
(
$retVal
);
?>
\ No newline at end of file
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