[libgit2-glib] Do not try to set workdir when repository was not created
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgit2-glib] Do not try to set workdir when repository was not created
- Date: Sat, 23 Nov 2013 10:45:26 +0000 (UTC)
commit e2ef0c0bbc9bf9b756cfd06cf4b9c3b9e9703fc9
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Sat Nov 23 11:42:03 2013 +0100
Do not try to set workdir when repository was not created
libgit2-glib/ggit-repository.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgit2-glib/ggit-repository.c b/libgit2-glib/ggit-repository.c
index 2fab9de..d1fab4b 100644
--- a/libgit2-glib/ggit-repository.c
+++ b/libgit2-glib/ggit-repository.c
@@ -365,7 +365,7 @@ ggit_repository_initable_init (GInitable *initable,
repo,
(GDestroyNotify)git_repository_free);
- if (!priv->workdir && !priv->is_bare)
+ if (success && !priv->workdir && !priv->is_bare)
{
priv->workdir = ggit_repository_get_workdir (GGIT_REPOSITORY (initable));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]