Skip to content

Commit

Permalink
Merge branch 'xx/trivial' into maint
Browse files Browse the repository at this point in the history
* xx/trivial:
  tag.c: whitespace breakages fix
  Fix whitespace issue in object.c
  t5505: add missing &&
  • Loading branch information
gitster committed Sep 6, 2010
2 parents dd34b6b + d2c030d commit af24059
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions object.c
Expand Up @@ -211,10 +211,10 @@ struct object_list *object_list_insert(struct object *item,
struct object_list **list_p)
{
struct object_list *new_list = xmalloc(sizeof(struct object_list));
new_list->item = item;
new_list->next = *list_p;
*list_p = new_list;
return new_list;
new_list->item = item;
new_list->next = *list_p;
*list_p = new_list;
return new_list;
}

int object_list_contains(struct object_list *list, struct object *obj)
Expand Down
2 changes: 1 addition & 1 deletion t/t5505-remote.sh
Expand Up @@ -435,7 +435,7 @@ test_expect_success 'update --prune' '
git branch -m side2 side3) &&
(cd test &&
git remote update --prune &&
(cd ../one && git branch -m side3 side2)
(cd ../one && git branch -m side3 side2) &&
git rev-parse refs/remotes/origin/side3 &&
test_must_fail git rev-parse refs/remotes/origin/side2)
'
Expand Down
12 changes: 6 additions & 6 deletions tag.c
Expand Up @@ -28,12 +28,12 @@ struct tag *lookup_tag(const unsigned char *sha1)
return create_object(sha1, OBJ_TAG, alloc_tag_node());
if (!obj->type)
obj->type = OBJ_TAG;
if (obj->type != OBJ_TAG) {
error("Object %s is a %s, not a tag",
sha1_to_hex(sha1), typename(obj->type));
return NULL;
}
return (struct tag *) obj;
if (obj->type != OBJ_TAG) {
error("Object %s is a %s, not a tag",
sha1_to_hex(sha1), typename(obj->type));
return NULL;
}
return (struct tag *) obj;
}

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

0 comments on commit af24059

Please sign in to comment.