I'm using Github as a source in code build and using webhook (PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED, PULL_REQUEST_REOPENED), but when I generate a pull request or update a pull request I want to access the last commit author info ( author name and email )
I'm using command : git log -1 --format="%an <%ae>"
But it will throw an error
[Container] 2022/07/08 18:17:46 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: git log -1 --format="%an <%ae>". Reason: exit status 128
I'm not able to access author info based on the last commit, I thought code build would clone the repo fully and able to access the last commit author info but it seems not
Related
I am getting this error which I try to create singed apk in react native
"info Done writing bundle output
info Done writing sourcemap output
info Copying 1 asset files
info Done copying assets
'E:\React' is not recognized as an internal or external command,
operable program or batch file.
enter image description here
Task :app:createBundleReleaseJsAndAssets FAILED
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
What went wrong:
Execution failed for task ':app:createBundleReleaseJsAndAssets'.
Process 'command 'cmd'' finished with non-zero exit value 1
"
It will be great if anyone can tell the solution for it?
I'm trying to add a library for better publishing experience (np).
The issue is, I'm getting this error regardless of what option/version I use:
✖ Command failed with exit code 128: git log --format=%s %h 715331db5d0ebbcda8751b08eaa4f84b213b2ff1
fb769f732b295e9debdfe80fe6a2c4d050a4093e..HEAD
fatal: ambiguous argument '715331db5d0ebbcda8751b08eaa4f84b213b2ff1
fb769f732b295e9debdfe80fe6a2c4d050a4093e..HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
I'm not well versed enough with git to understand what this is trying to tell me, plus searches for the error led me to dead ends.
I have a scenario where multiple github actions job update the same repo or something same file but different lines at the same time. I am getting below errors:
ERROR:__main__:Error occured while pushing the code: Cmd('git') failed due to: exit code(128)
cmdline: git pull -v origin
stderr: 'fatal: Need to specify how to reconcile divergent branches.'
or
WARNING:git.remote:Error lines received while fetching: error: failed to push some refs to 'https://github.com/test-ai/project-stack.git'
ERROR:__main__:Error occured while pushing the code: Cmd('git') failed due to: exit code(1)
cmdline: git push --porcelain origin
stderr: 'error: failed to push some refs to 'https://github.com/test-ai/project-stack.git'
I am using the below code:
from git.repo.base import Repo
repo = Repo.clone_from(git_path, folder_to_clone, branch=branch)
repo.git.add(file_paths)
repo.index.commit(commit_message)
repo.remotes.origin.pull()
origin = repo.remote(name="origin")
push = origin.push()
push.raise_if_error()
I am a noob on an i5 desktop. I could not update my system. Terminal reads as follows, after I type and enter "sudo pacman -Syu"
[sudo] password for user-name: ********
:: Synchronizing package databases...
error: failed to update core (unable to lock database)
error: failed to update extra (unable to lock database)
error: failed to update community (unable to lock database)
error: failed to update multilib (unable to lock database)
error: failed to synchronize all databases
Help!!
I'm sorry, this is already covered in the wiki...
sudo rm /var/lib/pacman/db.lck
pacman-ArchWiki: "Failed to init transaction (unable to lock database)" error
If you've already deleted /var/lib/pacman/db.lck, like OP posted, and still got the same problem, try this:
sudo rm /var/tmp/pamac/dbs/db.lck
This can be solved by quitting Software Update program from task manager.
This worked for me.
I have a problem when trying to migrate the subversion repository to Git repository
I run by following command
git svn clone -s --ignore-paths="tags" svn://localhost/web .
and I got the error message as below,
branch_from: /branches/tags => /branches/tags/3.7
Found possible branch point: svn://localhost/web/branches/tags/3.7 => svn://localhost/web/tags/3.7, 15131
Initializing parent: refs/remotes/tags/3.7#15131
W: Ignoring error from SVN, path probably does not exist: (160013): Filesystem has no item: File not found: revision 101, path '/branches/tags/3.7'
W: Do not be alarmed at the above message git-svn is just searching aggressively for old history.
This may take a while on large repositories
Found possible branch point: svn://localhost/web/branches/workspace_production_3.0 => svn://localhost/web/branches/tags/3.7, 10538
Found branch parent: (refs/remotes/tags/3.7#15131) a7067c8515c17c7f0bf8c6390a785426a8de5b83
Following parent with do_switch
Successfully followed parent
error: 'refs/remotes/tags' exists; cannot create 'refs/remotes/tags/3.7#15131'
fatal: Cannot lock the ref 'refs/remotes/tags/3.7#15131'.
update-ref -m r10539 refs/remotes/tags/3.7#15131 67f3c547c7dfac657fcfd7759746f44eb74b187f: command returned error: 128
actually I don't want to ignore any path, but seem like tags occurs the problem, so I put it to the ignore-path.
Do I missing something?
For my repository, there are the previous revision that contains non-standard repository form like /branches/tags , so, I fixed by re-create git rep with following command
git svn init -s --ignore-paths="^tags|^branches/tags" svn://localhost/web .
git svn fetch