Merge pull request #4422 from dokku/4405-shallow-push

Add warning regarding shallow clone pushes
This commit is contained in:
Jose Diaz-Gonzalez authored and GitHub committed 2021-02-20 17:44:28 -05:00
commit 72c5172873
1 file changed
+2
+2
View File
@@ -19,6 +19,8 @@ Git-based deployment has been the traditional method of deploying applications i
## Usage ## Usage
> Warning: Pushing from a shallow clone is not currently supported and may have undefined behavior. Please unshallow your local repository before pushing to a Dokku app to avoid potential errors in the deployment process.
### Initializing an application ### Initializing an application
When an application is created via `git push`, Dokku will create the proper `pre-receive` hook in order to execute the build pipeline. In certain cases - such as when fronting deploys with the [`git-http-backend`](https://git-scm.com/docs/git-http-backend) - this may not be correctly created. As an alternative, the `git:initialize` command can be used to trigger this creation: When an application is created via `git push`, Dokku will create the proper `pre-receive` hook in order to execute the build pipeline. In certain cases - such as when fronting deploys with the [`git-http-backend`](https://git-scm.com/docs/git-http-backend) - this may not be correctly created. As an alternative, the `git:initialize` command can be used to trigger this creation: