Skip to content

Commit af24059

Browse files
committed
Merge branch 'xx/trivial' into maint
* xx/trivial: tag.c: whitespace breakages fix Fix whitespace issue in object.c t5505: add missing &&
2 parents dd34b6b + d2c030d commit af24059

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

object.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,10 @@ struct object_list *object_list_insert(struct object *item,
211211
struct object_list **list_p)
212212
{
213213
struct object_list *new_list = xmalloc(sizeof(struct object_list));
214-
new_list->item = item;
215-
new_list->next = *list_p;
216-
*list_p = new_list;
217-
return new_list;
214+
new_list->item = item;
215+
new_list->next = *list_p;
216+
*list_p = new_list;
217+
return new_list;
218218
}
219219

220220
int object_list_contains(struct object_list *list, struct object *obj)

t/t5505-remote.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ test_expect_success 'update --prune' '
435435
git branch -m side2 side3) &&
436436
(cd test &&
437437
git remote update --prune &&
438-
(cd ../one && git branch -m side3 side2)
438+
(cd ../one && git branch -m side3 side2) &&
439439
git rev-parse refs/remotes/origin/side3 &&
440440
test_must_fail git rev-parse refs/remotes/origin/side2)
441441
'

tag.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ struct tag *lookup_tag(const unsigned char *sha1)
2828
return create_object(sha1, OBJ_TAG, alloc_tag_node());
2929
if (!obj->type)
3030
obj->type = OBJ_TAG;
31-
if (obj->type != OBJ_TAG) {
32-
error("Object %s is a %s, not a tag",
33-
sha1_to_hex(sha1), typename(obj->type));
34-
return NULL;
35-
}
36-
return (struct tag *) obj;
31+
if (obj->type != OBJ_TAG) {
32+
error("Object %s is a %s, not a tag",
33+
sha1_to_hex(sha1), typename(obj->type));
34+
return NULL;
35+
}
36+
return (struct tag *) obj;
3737
}
3838

3939
static unsigned long parse_tag_date(const char *buf, const char *tail)

0 commit comments

Comments
 (0)