зеркало из https://github.com/microsoft/git.git
Merge branch 'maint-1.7.6' into maint-1.7.7
* maint-1.7.6: attr: fix leak in free_attr_elem t2203: fix wrong commit command
This commit is contained in:
Коммит
afb6b561e3
1
attr.c
1
attr.c
|
@ -301,6 +301,7 @@ static void free_attr_elem(struct attr_stack *e)
|
|||
}
|
||||
free(a);
|
||||
}
|
||||
free(e->attrs);
|
||||
free(e);
|
||||
}
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ test_expect_success 'cannot commit with i-t-a entry' '
|
|||
echo frotz >nitfol &&
|
||||
git add rezrov &&
|
||||
git add -N nitfol &&
|
||||
test_must_fail git commit
|
||||
test_must_fail git commit -m initial
|
||||
'
|
||||
|
||||
test_expect_success 'can commit with an unrelated i-t-a entry in index' '
|
||||
|
|
Загрузка…
Ссылка в новой задаче