Do "bare" repositories by default

Mixing the repository and checkouts is discouraged.
This commit is contained in:
Colin Walters committed 2011-10-19 17:45:00 -04:00
1 parent 648f3ac717
commit 961b1c80db
5 files changed
+9 -49

No files matched your search

+3 -2
View File
@@ -133,8 +133,9 @@ ostree_repo_constructor (GType gtype,
g_assert (priv->path != NULL);
priv->repo_file = ot_util_new_file_for_path (priv->path);
priv->head_ref_path = g_build_filename (priv->path, OSTREE_REPO_DIR, "HEAD", NULL);
priv->objects_path = g_build_filename (priv->path, OSTREE_REPO_DIR, "objects", NULL);
priv->head_ref_path = g_build_filename (priv->path, "HEAD", NULL);
priv->objects_path = g_build_filename (priv->path, "objects", NULL);
return object;
}
-33
View File
@@ -1,33 +0,0 @@
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
*
* Copyright (C) 2011 Colin Walters <walters@verbum.org>.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* Author: Colin Walters <walters@verbum.org>
*/
#ifndef __OSTREE_TYPES_H__
#define __OSTREE_TYPES_H__
#include <gio/gio.h>
G_BEGIN_DECLS
#define OSTREE_REPO_DIR ".ot"
G_END_DECLS
#endif
-1
View File
@@ -23,6 +23,5 @@
#include <ostree-core.h>
#include <ostree-repo.h>
#include <ostree-types.h>
#endif