Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Expanded Fronts

    (@expandedfronts)

    Hello,

    What happens when you do a commit in shell/command line?

    The most common reason for this happening is if the Git username/email hasn’t been configured, which can be set through the Revisr settings page.

    Thread Starter Sambs

    (@sambs)

    It was a strange error: “git invalid object”…

    Anyway, the point is that when an error occurs, Revisr shouldn’t claim the commit was successful and should report the error back so it can be fixed.

    Personally, I’m not keen on the way Revisr stores commits as posts. It seems to just duplicate information stored in your repo, introducing the possibility that the two can get out of sync. Why not just pull the info for the recent activity section from git’s log?

    Plugin Author Expanded Fronts

    (@expandedfronts)

    Hello,

    Regarding the issue with the error- I agree completely, and the way that Revisr handles errors involving Git has been dramatically improved in the next release. We’re looking to release that very soon.

    The main idea behind storing the commits as a custom post type is that you can see more information on each commit directly from Revisr, in a format that integrates with the stock WordPress look and feel, and also allows a good amount of additional functionality without having to reinvent the wheel.

    Your concern regarding the possibility of Revisr becoming out of sync is a good one, but with the above mentioned improvements in error reporting, and the fact that Revisr will create new ‘posts’ for commits pulled from another remote, this would be very unlikely to happen. Although, it’s still a good thing to look out for, so for the next release we will add a check for this issue as a precautionary measure.

    Thank you for the feedback on the recent activity- it’s something we’ll take into consideration as we develop the plugin further.

    I’m marking this thread as resolved as it looks like you found the cause of the original issue (the corrupted git object). If you run into any further issues or have any further feedback, please let me know.

    Thank you again for your feedback and for trying Revisr.

    Thread Starter Sambs

    (@sambs)

    Hi, thanks for your response. Its good to hear about the improvements in the upcoming release. Many thanks for creating and maintaining a useful bit of software.

    Hi, I’m actually running into a similar issue. I had Revisr up and running for a few days but something happened to get my repo and production site out of sync and now I cant pull or push anything successfully. I get the error: “There was an error pulling from the remote repository. The local repository could be ahead, or there may be an authentication issue.” whether pulling or pushing.

    Nothing will sync things up. The settings haven’t changed and I get “Success” when I reenter my repo url/credentials (I’m using HTTPS as I don’t have shell access on the production server. I’ve uninstalled and reinstalled hoping a fresh attempt would flush things. Still nothing.

    Strangely, the changes are getting pulled to the site and are listed in the activity log and commit… but they’re followed by an error and aren’t appearing on the site.

    In the activity log is shows:

    Error pulling changes from the remote repository. 18 mins ago
    Pulled #124ff8c from origin/master. 18 mins ago
    Pulled #0801b36 from origin/master. 18 mins ago
    Pulled #f84da5e from origin/master. 18 mins ago
    Pulled #17fc8ce from origin/master. 18 mins ago

    Any thoughts?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Commit not successful but shown in recent activity’ is closed to new replies.