statamic / spock

Automatically perform git commits, pushes, and other cli actions when Statamic content changes
95 stars 16 forks source link

LOG.error: Spock command exited unsuccessfully #49

Closed GrantSmithDoddle closed 4 years ago

GrantSmithDoddle commented 4 years ago
[09:48:21] LOG.error: Spock command exited unsuccessfully:
Command: git -c "user.name=######" -c "user.email=######" commit -m "Addon settings saved by ######"
Output: 
# On branch develop
# Your branch is ahead of 'origin/develop' by 1 commit.
#   (use "git push" to publish your local commits)
#
# Changes not staged for commit:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#   modified:   .htaccess
#   modified:   site/content/collections/articles/2020-04-02.mollis-justo-malesuada-dolor.md
#   modified:   site/settings/addons/seo_pro.yaml
#
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#   site/settings/addons/big_kahuna.yaml
no changes added to commit (use "git add" and/or "git commit -a")

Error: No error
[09:48:22] LOG.error: Spock command exited unsuccessfully:
Command: git push
Output: No output
Error: 
warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the current behavior after the default changes, use:

  git config --global push.default matching

To squelch this message and adopt the new behavior now, use:

  git config --global push.default simple

See 'git help config' and search for 'push.default' for further information.
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
'current' instead of 'simple' if you sometimes use older versions of Git)

fatal: could not read Username for 'https://github.com': No such device or address

Git Config file

[core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true
[remote "origin"]
    url = https://github.com/#####/##########.git
    fetch = +refs/heads/*:refs/remotes/origin/*
[branch "develop"]
    remote = origin
    merge = refs/heads/develop
[user]
    email = ############
    name = #############

I'm receiving the above errors with Spock. Here is what I have tried.

I started again using https://github.com/username/folder.git instead of the ssh method as I found a load of articles around permission denied. However I get the same error as above.

Now getting fatal: could not read Username for https://github.com: No such device or address even though its been set through git config and inputted into control panel

####indicates correct details are inputted

GrantSmithDoddle commented 4 years ago

This actually appear to be working now? Really don't understand why I was seeing these errors?