-
- The default branch is now
maininstead ofmasterthroughout — the setup Wizard (every hosting service, including "All others"), the Local Branch / Remote Branch settings fields, and the API defaults — matching the current default branch on GitHub, modern GitLab (14.0+), and Bitbucket Cloud. Previously the Wizard silently pre-filledmasterfor GitLab and Bitbucket, which causedgit fetch origin masterto fail withcouldn't find remote ref masteron a freshly created repo #251. hasRemote()now performs a genuine, quiet existence check (git remote) rather than runningremote get-url <name>and relying on a thrown error. With command logging enabled this no longer writes a misleadingerror: No such remoteline every time a remote hasn't been added yet.
- The default branch is now
-
- Fixed commits failing with
fatal: empty ident name (for <…>) not allowedwhen the committer name resolved to an empty string — for example a blank Committer Name field, or "Use Grav User Full Name" selected for an admin account with no full name set. Blank names/emails now fall back to theGitSync/git-sync@trilby.mediadefaults #249.
- Fixed commits failing with
-
- The Git Sync sidebar entry and the toolbar Synchronize button are now hidden from users who lack any Git Sync permission, matching how admin-classic gates the same menu. The items only appear for users with one of
api.git-sync,api.git-sync.read,api.git-sync.write, orapi.git-sync.admin(or super-admins). Requires grav-plugin-api ≥ 1.0.0-rc.11. Fixes getgrav/grav-plugin-admin2#23.
- The Git Sync sidebar entry and the toolbar Synchronize button are now hidden from users who lack any Git Sync permission, matching how admin-classic gates the same menu. The items only appear for users with one of
-
- Added a dedicated Git Sync page in Admin2 with a sidebar entry and Wizard / Synchronize / Reset Local Copy / Save buttons in the page header.
- Added a step-by-step setup Wizard in Admin2 that walks you through hosting service, repository, webhook and folders, with a one-click button to verify your credentials and branch.
- Added a quick Synchronize button to the Admin2 toolbar that's available everywhere once Git Sync is configured.
- Added a proper password input for the Git Password / Token field in Admin2 with a show / hide toggle and the same "securely stored" placeholder you're used to.
-
- The plugin's entry under Admin2 → Plugins now shows just the enable / disable toggle and a pointer to the dedicated Git Sync page, so you don't see the same form twice.
- Synchronize and Reset Local Copy keep the rest of Admin2 responsive while they're running.
-
- Added sync direction configuration to enable one-way (pull only) synchronization #224
-
- Fixed git pull command for modern git versions by adding
--ffflag #246 - Removed unnecessary
config->reload()call inonAdminAfterSaveevent
- Fixed git pull command for modern git versions by adding
-
- Grav 1.8 support
- Use
{$var}instead of${var}causing deprecation notices - Prevent accepting webhooks when they are disabled in config #216
- Updated FAQ link to discussion
-
- Better validation for Git Repository value on both Wizard and Backend.
- Prevent malicious commands from being executed in Wizard when "Verifying Authentication, Connection and Branch".
-
- Updated PHP Encryption dependency
-
- Fixed issue with Flex Objects, preventing GitSync's settings to get refreshed
onAdminSavewhen "Sync on Page Save" disabled - Return raw URL for repositories setup with
ssh://protocol, instead of injecting the password likegit://andhttp://protocols do #104
- Fixed issue with Flex Objects, preventing GitSync's settings to get refreshed
-
- Better support for branches other than
master. This includes the transition tomainfrom GitHub and the groundwork to support other big providers making the change as announced soon. GitSync is now capable of preset the branch based on the provider selected. You are now also able to specify any custom branch and when testing the repository connection it will also ensure the branch exists and provide feedback if not.
- Better support for branches other than
-
- Added
No Useroption to allow disabling the username requirement. This is useful for when you have a token and the user is not required. (#166, thanks GwynethLlewelyn) - Added
passwdcommand for programmatically change user/password (use:bin/plugin git-sync passwd) (#146) - Fixed regression wrongly returning the installed Git version and causing all sort of problems, including unrelated histories not kicking off (#61, #168, #171, #173)
- Fixed potential issue where the new feature
no_usermy throw an error - Fixed issue with autoload
- Added
-
- Fixed classes not being loaded in
clicommands due to Grav changes (#167) - Updated dependencies / recompiled JS for production
- Fixed classes not being loaded in
-
- Bumped modules versions
-
- Requires Grav v1.6.0
- Pass phpstan level 2 tests
-
- Code cleanup
- Added support for Gitea / Gogs webhook secret (#149, thanks @Aisbergg)
-
- Fixed InitCommand spelling (#132, thanks @alex-mohemian)
-
- Fixed PHP 5.6 incompatibility introduced by latest release.
-
- Added new
initCLI command (bin/plugin git-sync init) (#128, thanks @LeonRyan and @alex-mohemian)
- Added new
-
- Allow setting a personalised commit message (#123, thanks @kyed)
- Added better directions for Azure + IIS users for the Git Binary
-
- Fixed
LC_ALLto useCinstead of en_US.UTF-8`, to be more flexible (#124, #125, thanks @lambopedia)
- Fixed
-
- Added support for new awesome Grav 1.6 Scheduler
- Added logic to display custom nested folders in wizard
- Other than
pages, it is now possible to enableconfig,data,pluginsandthemesfor synchronization. You can also add any custom folder you have in youruser(#4, #21, #34, #58, #63, #83) - Allow users with
admin.pagespermissions to synchronize through quick tray (#79, thanks @apfrod) - When using Grav as committer, the user email will be now used for the commit (#81, thanks @apfrod)
- Added support for Webhook Secret (Bitbucket does not yet support them) (#72, #73, thanks @pathmissing)
- Added options to turn automatic synchronization on/off with page saves, delete and media changes (#105, thanks @AmauryCarrade)
-
- Fixed alignment of the git icon in the Wizard (#115)
- Prevent Wizard modal to get canceled when clicking on the overlay background (#115)
- Quick tray icon is now smarter. If GitSync has not been initialized yet, it will take you straight to wizard, otherwise it would perform a synchronization (#115)
- Rearranged blueprint order (thanks @paulhibbitts)
- GitLab: Updated wizard instructions to be inline with the new GitLab UI (#90)
- Tweaked alignment of links in the wizard (#57)
- Properly support local branches that aren't
master(#56) - Allow to specify custom local_repository (default,
USER_DIR) (#95, thanks @Hydraner, also #54, #33, #25) - Webhook URL is now more robust and secure, by default it is generated with a random value
- Git icon from Admin has been replaced to use the
gittext icon instead of the logo - Prevent next step if Step 1 and Step 2 are not filled in (#92)
- Added notice in Step 2 explaning what GitSync expect from the repository structure (#92)
-
- Fixed issue where on first initialization the checkout process would error out
- Fixed issue with Pages save.
- Fixed JS error in plugins list
- Fixed nested folders not synchronizing
- Fixed issue where Wizard wouldn't work in case the
adminpath was modified (#27, #94, #77, thanks @pathmissing) - Fixed webhook generated URL when multi-lang active (#71)
- Resolved issue with untracked/uncommited files at the root of the
syncfolder. (#101, thanks @ScottHamper)
-
- CLI: Added
statuscommand to check config and git (#52, thanks @karfau) - Allow local branches to be named differently than the remote branches (#48, thanks @denniswebb)
- Added support for new Admin Navigation Tray
- CLI: Added
-
- Fixed minimum Git required version to support
--all(#32,#49, thanks @redrohX)
- Fixed minimum Git required version to support
-
- Fixed issue with new 'author' option that could trigger errors when settings were not saved. (#23)
- Fixed the 'More Details' button triggering the Modal to close instead of just expanding the details
-
- It is now possible to change the committer name. You can choose between Git User, GitSync Committer Name, Grav User Name, Grav User Fullname (#14).
-
- Added more documentation and description about the support of 2FA and Access Tokens (#16, #19, thanks @OleVik)
- Added 4th Generic Git choice in the wizard for self-hosted and custom git services (Gogs/Gitea) (#7 - #22 - thanks @erlepereira)
-
- Fixed issue preventing the custom Git Binary Path from getting used (#15)
- Fixed issue with Webhook auto-generated URL where it would display double slashes in case of root domain (#15)
- Fixed issue with the modal not properly restoring the tutorial steps of the active selected service
-
- Allow to change the path for the
gitbinary (#1) - Added CLI for synchronizing
bin/plugin git-sync sync(#2) - More security: Git password will now get encrypted and won't load in admin
- Allow to change the path for the
-
- Wizard: Improved Bitbucket explanation about stripping out
user@from the copied HTTPS url (#3)
- Wizard: Improved Bitbucket explanation about stripping out
-
- Fixed potential issue when retrieving the currently installed git version
- Fixed issue that would not properly hide the password from error messages if the password contained special chars
- Fixed issue preventing the plugin to properly get setup the very first time and causing 401 error (#4)
- Workaround for error thrown when removing the plugin