File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -570,7 +570,6 @@ static const char edit_description[] = "BRANCH_DESCRIPTION";
570
570
571
571
static int edit_branch_description (const char * branch_name )
572
572
{
573
- int status ;
574
573
struct strbuf buf = STRBUF_INIT ;
575
574
struct strbuf name = STRBUF_INIT ;
576
575
@@ -595,11 +594,11 @@ static int edit_branch_description(const char *branch_name)
595
594
strbuf_stripspace (& buf , 1 );
596
595
597
596
strbuf_addf (& name , "branch.%s.description" , branch_name );
598
- status = git_config_set (name .buf , buf .len ? buf .buf : NULL );
597
+ git_config_set_or_die (name .buf , buf .len ? buf .buf : NULL );
599
598
strbuf_release (& name );
600
599
strbuf_release (& buf );
601
600
602
- return status ;
601
+ return 0 ;
603
602
}
604
603
605
604
int cmd_branch (int argc , const char * * argv , const char * prefix )
You can’t perform that action at this time.
0 commit comments