origin: https://github.com/appleboy/git-test
remote: https://github.com/appleboy/html5-template-engine
Make sure these boxes are checked before submitting/approving the PR
$form['file'] = [ | |
'#type' => 'managed_file', | |
'#title' => t('File'), | |
'#upload_location' => 'public://file', | |
'#upload_validators' => [ | |
'file_validate_extensions' => ['csv'], | |
], | |
'#default_value' => array(2) | |
]; | |
# Run | |
git config --global credential.helper store | |
#Then | |
git pull | |
#provide a username and password and those details will then be remembered later. The credentials are stored in a file on the disk, with the disk permissions of "just user readable/writable" but still in plaintext. |
for i in `git branch -a |grep remotes |awk '{print $1}' | cut -d"/" -f 3,4,5 |grep -v ^master$ |grep -v ^HEAD$`; do echo "`git log -1 --pretty=format:\"%an (%ae)\" origin/$i`|$i"; done |sort > /tmp/branches.csv |
drush ev "drupal_set_installed_schema_version('module_name', 8801)" |