Question about cat-file
#535
-
First of all: thanks for this wonderful action! I have some problems understanding the flow of checking if a commit from another repo (the template) is present in the current repo. Correct me if I understand the procedure wrong:
I tried to reproduce the steps with some private repos:
Inside the repository based on the template, check if the commit from the independent repository is present. The 2nd step didn't return an error with the completely independent repo. So I wonder what I'm doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @herrwusel , Related to docs git cat-file -e
Another thought: After the merge the commit will be part (also squash commits. Squash commits are the reason for using |
Beta Was this translation helpful? Give feedback.
Hi @herrwusel ,
sorry for asking but did you check the error code after
git cat-file -e ...
?E.g. with
echo $?
?https://www.cyberciti.biz/faq/bash-get-exit-code-of-command/
Related to docs git cat-file -e
Another thought:
If an independent repo, the commit hash is with very first run not present within the target repo. So the command have exit code 0 (if I get your workflow right).
After the merge the commit will be part (also squash commits. Squash commits are the reason for using
cat-file
)