Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not deploying with keep_gitdata == false #109

Open
amateo opened this issue Dec 5, 2014 · 1 comment
Open

Not deploying with keep_gitdata == false #109

amateo opened this issue Dec 5, 2014 · 1 comment

Comments

@amateo
Copy link
Contributor

amateo commented Dec 5, 2014

I want to deploy a git puppi project (puppi::project::git) with option keep_gitdata == false because I don't want .git directory in the final deploy root.

The problem I'm having is that a clone of the git directory is done in /var/lib/puppi/archive/<project>-git/gitrepo, but it is no copied in the deploy_root directory.

I think the problem is a bug in git.sh script, in lines:

  if [ "x$gitdir" == "x$archivedir/$project-git" ] ; then
    rsync -a --exclude=".git" $gitdir/$gitsubdir $deploy_root/
  else 

and I think that check has to be:

  if [ "x$gitdir" == "x$archivedir/$project-git/gitrepo" ] ; then

Am I right?

@alvagante
Copy link
Member

Seems, so, have you tried to see what happens with your suggested fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants