I have just made a site install from a git clone checked 7.2 out but when I did the install the version is 7.3-dev?
Here is how i did it:
Clone the git repository
git clone http://git.drupal.org/project/drupal.git site
List tags
git tag
Choose the version, in this case Drupal 7.2
git checkout 7.2
Branch the core and track this branch
git checkout -b drupal7core --track origin/7.x
Branch contribs
git checkout -b sitecontrib
Branch personal
git checkout -b sitepersonal
Switch to contrib branch
git checkout sitecontrib
Create the new installation profile, by copy and rename the standard profile under /site/profiles/standard to /site/profiles/site
Here is how they could look:
/site/profiles/site/site.profile
/site/profiles/site/site.install
<?php
/**
* Implements hook_install().
*
* Perform actions to set up the site for this profile.
*/
function site_install() {
// Add text formats.
include_once DRUPAL_ROOT . '/profiles/standard/standard.install' ;
standard_install();
// Change enable and change default theme
theme_enable(array('sky' ));
variable_get('theme_default' , 'sky' );
}
/site/profiles/site/site.info
name = Site
description = Install with commonly used features pre-configured.
; core
core = 7.x
dependencies[] = block
dependencies[] = color
dependencies[] = comment