-
Notifications
You must be signed in to change notification settings - Fork 701
Description
I want to write a specific value into the .git-ftp.log file using the command git ftp push --last-commit-id. This need arises particularly when the pipeline on GitLab is triggered and the deploy_script is executed. The deploy_script uses git ftp push within the pipeline, and the relevant commit ID is written into the .git-ftp.log. However, when the pipeline runs again, the corresponding commit ID is not available in GitLab, which prevents the git ftp push operation from executing and prompts the "Do you want to upload all files again?" warning. If I could write the latest commit ID from GitLab into the .git-ftp.log, this issue would be resolved.
While the pipeline is running, I solved this by connecting to the FTP via curl after git ftp push and replacing the value in .git-ftp.log with the GitLab commit ID. However, the git ftp push --last-commit-id-free-text parameter is needed for this. If you could implement this improvement, it would be very beneficial for many users in the new version.