0

I'm trying to deploy a basic Ruby on Rails app, however when I run either "kamal setup" or "kamal deploy" I get the following error.

 INFO Cloning repo into build directory `/tmp/kamal-clones/store-317de88a985b1/store/`... INFO [e80db57e] Running /usr/bin/env git -C /tmp/kamal-clones/store-317de88a985b1 clone /var/www/store --recurse-submodules as root@localhost INFO Resetting local clone as `/tmp/kamal-clones/store-317de88a985b1/store/` already exists... fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git <command> [<revision>...] -- [<file>...]' INFO [3d51c10f] Running /usr/bin/env git -C /tmp/kamal-clones/store-317de88a985b1/store/ remote set-url origin /var/www/store as root@localhost INFO [3d51c10f] Finished in 0.005 seconds with exit status 0 (successful). INFO [502bb7a4] Running /usr/bin/env git -C /tmp/kamal-clones/store-317de88a985b1/store/ fetch origin as root@localhost INFO [502bb7a4] Finished in 0.010 seconds with exit status 0 (successful). INFO [cc9a4ce6] Running /usr/bin/env git -C /tmp/kamal-clones/store-317de88a985b1/store/ reset --hard HEAD as root@localhost ERROR Error preparing clone: Failed to clone repo: git exit status: 32768 git stdout: Nothing written git stderr: fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git <command> [<revision>...] -- [<file>...]' , deleting and retrying... INFO Cloning repo into build directory `/tmp/kamal-clones/store-317de88a985b1/store/`... INFO [81b772d7] Running /usr/bin/env git -C /tmp/kamal-clones/store-317de88a985b1 clone /var/www/store --recurse-submodules as root@localhost INFO [81b772d7] Finished in 0.011 seconds with exit status 0 (successful). INFO [76ceade8] Running /usr/bin/env git -C /tmp/kamal-clones/store-317de88a985b1/store/ status --porcelain as root@localhost INFO [76ceade8] Finished in 0.006 seconds with exit status 0 (successful). INFO [a2a0357d] Running /usr/bin/env git -C /tmp/kamal-clones/store-317de88a985b1/store/ rev-parse HEAD as root@localhost Finished all in 21.4 seconds ERROR (Kamal::Cli::Build::BuildError): Failed to validate clone: git exit status: 32768 git stdout: HEAD git stderr: fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git <command> [<revision>...] -- [<file>...]' 

I've found people having similar issues with git and solutions to their problem. However none of those situations involved Kamal. I'm guessing I can solve the issue by configuring Kamal to use git correctly but I'm not sure how to actually do that.

New contributor
IMaltbey is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

    0

    Start asking to get answers

    Find the answer to your question by asking.

    Ask question

    Explore related questions

    See similar questions with these tags.