Skip to content

Commit

Permalink
added loging of fetch requests
Browse files Browse the repository at this point in the history
  • Loading branch information
mhevery committed Aug 30, 2012
1 parent d8eacee commit 050f8e2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Original file line Diff line number Diff line change
@@ -1,2 +1,3 @@
wlizer/ wlizer/
snapshot/ snapshot/
gitFetchSite.log
15 changes: 15 additions & 0 deletions gitFetchSite.php
Original file line number Original file line Diff line number Diff line change
@@ -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>

0 comments on commit 050f8e2

Please sign in to comment.