mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos/gitit: use programs from path
This commit is contained in:
parent
551e65e946
commit
f7522d6b56
1 changed files with 5 additions and 5 deletions
|
@ -689,14 +689,14 @@ in
|
||||||
''
|
''
|
||||||
if [ ! -d _darcs ]
|
if [ ! -d _darcs ]
|
||||||
then
|
then
|
||||||
${pkgs.darcs}/bin/darcs initialize
|
darcs initialize
|
||||||
echo "${gm}" > _darcs/prefs/email
|
echo "${gm}" > _darcs/prefs/email
|
||||||
''
|
''
|
||||||
else if repositoryType == "mercurial" then
|
else if repositoryType == "mercurial" then
|
||||||
''
|
''
|
||||||
if [ ! -d .hg ]
|
if [ ! -d .hg ]
|
||||||
then
|
then
|
||||||
${pkgs.mercurial}/bin/hg init
|
hg init
|
||||||
cat >> .hg/hgrc <<NAMED
|
cat >> .hg/hgrc <<NAMED
|
||||||
[ui]
|
[ui]
|
||||||
username = gitit ${gm}
|
username = gitit ${gm}
|
||||||
|
@ -706,9 +706,9 @@ NAMED
|
||||||
''
|
''
|
||||||
if [ ! -d .git ]
|
if [ ! -d .git ]
|
||||||
then
|
then
|
||||||
${pkgs.git}/bin/git init
|
git init
|
||||||
${pkgs.git}/bin/git config user.email "${gm}"
|
git config user.email "${gm}"
|
||||||
${pkgs.git}/bin/git config user.name "gitit"
|
git config user.name "gitit"
|
||||||
''}
|
''}
|
||||||
chown ${uid}:${gid} -R ${repositoryPath}
|
chown ${uid}:${gid} -R ${repositoryPath}
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue