Skip to content

Not deploying with keep_gitdata == false #109

@amateo

Description

@amateo

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions