git.cweiske.de
/
phorkie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
823e1f8
)
Part of #35: store owner in git configuration
author
Christian Weiske
<cweiske@cweiske.de>
Wed, 24 Oct 2012 19:46:45 +0000
(21:46 +0200)
committer
Christian Weiske
<cweiske@cweiske.de>
Wed, 24 Oct 2012 19:46:45 +0000
(21:46 +0200)
src/phorkie/Repository/Setup.php
patch
|
blob
|
history
diff --git
a/src/phorkie/Repository/Setup.php
b/src/phorkie/Repository/Setup.php
index e26338bf9a7656065f2e9696e445ab1b6347bd04..f5c9730f77c259ec0bb2f888cf3d49ac487c08a2 100644
(file)
--- a/
src/phorkie/Repository/Setup.php
+++ b/
src/phorkie/Repository/Setup.php
@@
-24,6
+24,18
@@
class Repository_Setup
unlink($hookfile);
}
touch($this->repo->gitDir . '/git-daemon-export-ok');
+
+ $vc = $this->repo->getVc();
+
+ //keep track of owner
+ $vc->getCommand('config')
+ ->addArgument('owner.name')
+ ->addArgument($_SESSION['name'])
+ ->execute();
+ $vc->getCommand('config')
+ ->addArgument('owner.email')
+ ->addArgument($_SESSION['email'])
+ ->execute();
}
}