Repository navigation
Conversation
Signed-off-by: Joy Gundu <soniqjjj@gmail.com>
Author
|
/submit |
|
Submitted as pull.2274.git.1792582249420.gitgitgadget@gmail.com To fetch this version into To fetch this version to local tag |
|
This patch series was integrated into seen via git@106d3fb. |
|
Usman Akinyemi wrote on the Git mailing list (how to reply to this email): On Wed, Oct 21, 2026 at 12:30 PM Joy via GitGitGadget
<gitgitgadget@gmail.com> wrote:
>
> From: Joy Gundu <soniqjjj@gmail.com>
>
> Signed-off-by: Joy Gundu <soniqjjj@gmail.com>
> ---
> t3429: use test_path_is_file helper
>
> Replace test -e F with test_path_is_file F in t3429-rebase-edit-todo.sh
> to use Git's semantic test helper and provide better diagnostics on
Why is the commit message down after the dashes, isn't is supposed to
be at the top?
> todo=.git/rebase-merge/git-rebase-todo &&
> git rebase HEAD~1 -x "echo exec touch F >>$todo" &&
> - test -e F
> + test_path_is_file F
This is wrong, the initial patch is testing whether "F" exists, not whether
it is a file. The appropriate function to use here is test_patch_exists.
> '
>
> test_expect_success 'rebase exec with an empty list does not exec anything' '
>
> base-commit: c51408889c3b372814bc20b9431c3b74d0d268eb
> --
> gitgitgadget |
|
User |
|
Junio C Hamano wrote on the Git mailing list (how to reply to this email): Usman Akinyemi <usmanakinyemi202@gmail.com> writes:
> On Wed, Oct 21, 2026 at 12:30 PM Joy via GitGitGadget
> <gitgitgadget@gmail.com> wrote:
>>
>> From: Joy Gundu <soniqjjj@gmail.com>
>>
>> Signed-off-by: Joy Gundu <soniqjjj@gmail.com>
>> ---
>> t3429: use test_path_is_file helper
>>
>> Replace test -e F with test_path_is_file F in t3429-rebase-edit-todo.sh
>> to use Git's semantic test helper and provide better diagnostics on
> Why is the commit message down after the dashes, isn't is supposed to
> be at the top?
(tip: leave a blank line between what they write and what you write,
both before and after)
It is a common mistake of GGG users. When they write an empty
commit message and then elaborate in the pull request message, we
see something like what we are looking at.
>> todo=.git/rebase-merge/git-rebase-todo &&
>> git rebase HEAD~1 -x "echo exec touch F >>$todo" &&
>> - test -e F
>> + test_path_is_file F
> This is wrong, the initial patch is testing whether "F" exists, not whether
> it is a file. The appropriate function to use here is test_patch_exists.
>> '
>>
>> test_expect_success 'rebase exec with an empty list does not exec anything' '
>>
>> base-commit: c51408889c3b372814bc20b9431c3b74d0d268eb
>> --
>> gitgitgadget |
|
This branch is now known as |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replace
test -e Fwithtest_path_is_file Fint3429-rebase-edit-todo.shto use Git's semantic test helper and provide better diagnostics on failure.Tested with:
make NO_ICONV=YesPlease test T=t3429-rebase-edit-todo.shAll 7 tests passed.
CC: Usman Akinyemi <usmanakinyemi202@gmail.com>
CC: Christian Couder <christian.couder@gmail.com>
cc: Usman Akinyemi usmanakinyemi202@gmail.com