Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added loging of fetch requests

  • Loading branch information...
commit 050f8e2e2548ca5750f0eb4547be023f2f3a68c0 1 parent d8eacee
@mhevery mhevery authored
Showing with 16 additions and 0 deletions.
  1. +1 −0  .gitignore
  2. +15 −0 gitFetchSite.php
View
1  .gitignore
@@ -1,2 +1,3 @@
wlizer/
snapshot/
+gitFetchSite.log
View
15 gitFetchSite.php
@@ -0,0 +1,15 @@
+<html>
+ <head>
+ <title>Update site from: GitHub master</title>
+ </head>
+<body>
+<?php `echo ================================== >> gitFetchSite.log`; ?>
+<?php `date >> gitFetchSite.log`; ?>
+ <pre><?php echo `date`; ?></pre>
+ <pre><?php echo `git fetch origin`; ?></pre>
+ <pre><?php echo `git checkout origin/master -f`; ?></pre>
+ <pre><?php echo `git status`; ?></pre>
+ <pre><?php echo `git log -n1`; ?></pre>
+ <?php `git log -n1 >> gitFetchSite.log`; ?>
+</body>
+</html>
Please sign in to comment.
Something went wrong with that request. Please try again.