All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denys Dmytriyenko <denys@ti.com>
To: "Franklin S. Cooper Jr" <fcooper@ti.com>
Cc: meta-arago@arago-project.org
Subject: Re: [PATCH 4/6] sourceipk: Fix issue with git fetch when shallow clone is used
Date: Mon, 2 Feb 2015 16:04:27 -0500	[thread overview]
Message-ID: <20150202210427.GB6257@edge> (raw)
In-Reply-To: <1422657099-15544-4-git-send-email-fcooper@ti.com>

On Fri, Jan 30, 2015 at 04:31:37PM -0600, Franklin S. Cooper Jr wrote:
> From: "Franklin S. Cooper Jr" <fcooper@ti.com>
> 
> * When shallow clone is used for some reason running git fetch on the repository
>   didn't end up making it completely whole (fetch all commits).
> * Even worse the copied repository didn't have a proper way to reference or
>   fetch remote branches or tags.
> * For some reason deleting the origin and seeing it back to the correct value
>   fixed these problems.

That all sounds like some kind of voodoo... :) What version of git were you 
using?


> Signed-off-by: Franklin S. Cooper Jr <fcooper@ti.com>
> ---
>  meta-arago-distro/classes/sourceipk.bbclass |    6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/meta-arago-distro/classes/sourceipk.bbclass b/meta-arago-distro/classes/sourceipk.bbclass
> index 6b16657..6895378 100644
> --- a/meta-arago-distro/classes/sourceipk.bbclass
> +++ b/meta-arago-distro/classes/sourceipk.bbclass
> @@ -157,7 +157,11 @@ adjust_git() {
>  
>              cd -
>  
> -            git remote set-url origin $remote_repo $local_repo
> +            # Some crazy reason I need to add these two lines when doing a
> +            # shallow copy. Otherwise, I had problems where git fetch wasn't
> +            # properly fetching all the commits and extra remotes.
> +            git remote rm origin
> +            git remote add origin $remote_repo
>  
>              # Repackage the repository so its a proper clone of the original
>              # (remote) git repository
> -- 
> 1.7.9.5
> 
> _______________________________________________
> meta-arago mailing list
> meta-arago@arago-project.org
> http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago


  reply	other threads:[~2015-02-02 21:04 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-30 22:31 [PATCH 1/6] ti-tisdk-makefile: Allow the defconfig name to be customized Franklin S. Cooper Jr
2015-01-30 22:31 ` [PATCH 2/6] busybox: Add mpstat utility which is useful for multicore devices Franklin S. Cooper Jr
2015-01-30 22:31 ` [PATCH 3/6] sourceipk: Make the # of revisions preserved from shallow clone a variable Franklin S. Cooper Jr
2015-01-30 22:31 ` [PATCH 4/6] sourceipk: Fix issue with git fetch when shallow clone is used Franklin S. Cooper Jr
2015-02-02 21:04   ` Denys Dmytriyenko [this message]
2015-02-02 21:09     ` Cooper Jr., Franklin
2015-01-30 22:31 ` [PATCH 5/6] arago-source-ipk: Enable shallow clone for sitara-linux-ti-staging Franklin S. Cooper Jr
2015-01-30 22:31 ` [PATCH 6/6] sitara-linux-ti-staging: Simply package up the sources don't copy the defconfig Franklin S. Cooper Jr
2015-01-31  2:52   ` Denys Dmytriyenko
2015-01-31  3:01     ` Cooper Jr., Franklin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150202210427.GB6257@edge \
    --to=denys@ti.com \
    --cc=fcooper@ti.com \
    --cc=meta-arago@arago-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.