Created
October 13, 2017 09:14
-
-
Save gyalbu/1fcd818ff8f12c5f2dd1846763caf10b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
No Bitbucket or Github webhook headers detected. Assumming manual trigger. | |
No branch specified, assuming default branch master | |
Checking the environment ... | |
Running as someone. | |
/usr/bin/git : git version 1.7.9.5 | |
/usr/bin/rsync : rsync version 3.0.6 protocol version 30 | |
Environment OK. | |
Deploying : xxxxx@bitbucket.org:xxxxx/testrepo.git (master) | |
to : /home2/xxxxx/public_html/xxxxx.com | |
Fetching repository from origin | |
$ git --git-dir="/home2/xxxxx/git/.git" --work-tree="/home2/xxxxx/git/" fetch --tags origin master | |
From bitbucket.org:xxxxx/testrepo | |
* branch master -> FETCH_HEAD | |
Checkout branch master | |
$ git --git-dir="/home2/xxxxx/git/.git" --work-tree="/home2/xxxxx/git/" checkout master | |
Already on 'master' | |
Passed commit hash is blank or doesn't match existing commits. Assuming most recent commit in branch: b9cf38a | |
Reset branch to commit b9cf38a in git directory | |
$ git --git-dir="/home2/xxxxx/git/.git" --work-tree="/home2/xxxxx/git/" reset --hard b9cf38a | |
HEAD is now at b9cf38a 54 | |
Updating git submodules in git directory | |
$ git submodule update --init --recursive | |
Current target directory version is b9cf38a | |
Get list of files added, modified and deleted from b9cf38a to b9cf38a | |
$ git --no-pager --git-dir="/home2/xxxxx/git/.git" diff --name-status b9cf38a b9cf38a | |
Deploying 0 files: | |
Added 0 | |
Modified 0 | |
Deleted 0 | |
NOTE: repository files that have been modfied or removed in target directory will be resynced with repository even if not listed in commits | |
$ rsync -rltgoDzvO /home2/xxxxx/git/ /home2/xxxxx/public_html/xxxxx.com --exclude=.git | |
sending incremental file list | |
sent 160 bytes received 13 bytes 346.00 bytes/sec | |
total size is 2705 speedup is 15.64 | |
Deleting files removed from repository | |
Update target directory version file to commit b9cf38a | |
$ echo "b9cf38a" > /home2/gurung/public_html/xxxxx.comVERSION | |
Done in 2.93723201752sec |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment